Factory interface for creating io.vertx.ext.auth.AuthProvider instances that use the Vert.x JDBC client

  • JDBCAuth
    • AuthProvider
      • Basic
        • Identifiable
        • Object
          • Anything

no subtypes hierarchy

Initializer
JDBCAuth(JDBCAuth unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
computeHashshared default String computeHash(String password, String salt)

Compute the hashed password given the unhashed password and the salt without nonce

The implementation relays to the JDBCHashStrategy provided.

Parameters:
  • password

    the unhashed password

  • salt

    the salt

computeHashshared default String computeHash(String password, String salt, Integer version)

Compute the hashed password given the unhashed password and the salt

The implementation relays to the JDBCHashStrategy provided.

Parameters:
  • password

    the unhashed password

  • salt

    the salt

  • version

    the nonce version to use

generateSaltshared default String generateSalt()

Compute a salt string.

The implementation relays to the JDBCHashStrategy provided.

setAuthenticationQueryshared default JDBCAuth setAuthenticationQuery(String authenticationQuery)

Set the authentication query to use. Use this if you want to override the default authentication query.

Parameters:
  • authenticationQuery

    the authentication query

setNoncesshared default JDBCAuth setNonces(Array nonces)

Provide a application configuration level on hash nonce's as a ordered list of nonces where each position corresponds to a version.

The nonces are supposed not to be stored in the underlying jdbc storage but to be provided as a application configuration. The idea is to add one extra variable to the hash function in order to make breaking the passwords using rainbow tables or precomputed hashes harder. Leaving the attacker only with the brute force approach.

The implementation relays to the JDBCHashStrategy provided.

Parameters:
  • nonces

    a List of non null Strings.

setPermissionsQueryshared default JDBCAuth setPermissionsQuery(String permissionsQuery)

Set the permissions query to use. Use this if you want to override the default permissions query.

Parameters:
  • permissionsQuery

    the permissions query

setRolePrefixshared default JDBCAuth setRolePrefix(String rolePrefix)

Set the role prefix to distinguish from permissions when checking for isPermitted requests.

Parameters:
  • rolePrefix

    a Prefix e.g.: “role:”

setRolesQueryshared default JDBCAuth setRolesQuery(String rolesQuery)

Set the roles query to use. Use this if you want to override the default roles query.

Parameters:
  • rolesQuery

    the roles query

Inherited Methods
Methods inherited from: AuthProvider
authenticate
Methods inherited from: Object
equals