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

The implementation relays to the JDBCHashStrategy provided.

Parameters:
  • password

    the unhashed password

  • salt

    the salt

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

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