Package io.vertx.mutiny.ext.auth.jdbc
Class JDBCAuth
java.lang.Object
io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
io.vertx.mutiny.ext.auth.AuthProvider
io.vertx.mutiny.ext.auth.jdbc.JDBCAuth
- All Implemented Interfaces:
MutinyDelegate
Factory interface for creating
AuthenticationProvider
instances that use the Vert.x JDBC client.
By default the hashing strategy is SHA-512. If you're already running in production this is backwards
compatible, however for new deployments or security upgrades it is recommended to use the PBKDF2 strategy
as it is the current OWASP recommendation for password storage.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeHash
(String password, String salt) Deprecated.computeHash
(String password, String salt, int version) Deprecated.static JDBCAuth
create
(Vertx vertx, JDBCClient client) Deprecated.boolean
Deprecated.io.vertx.ext.auth.jdbc.JDBCAuth
int
hashCode()
static JDBCAuth
newInstance
(io.vertx.ext.auth.jdbc.JDBCAuth arg) setAuthenticationQuery
(String authenticationQuery) Deprecated.setNonces
(io.vertx.core.json.JsonArray nonces) Deprecated.setPermissionsQuery
(String permissionsQuery) Deprecated.setRolePrefix
(String rolePrefix) Deprecated.setRolesQuery
(String rolesQuery) Deprecated.toString()
Methods inherited from class io.vertx.mutiny.ext.auth.AuthProvider
newInstance
Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
Field Details
-
__TYPE_ARG
-
DEFAULT_AUTHENTICATE_QUERY
The default query to be used for authentication- See Also:
-
DEFAULT_ROLES_QUERY
The default query to retrieve all roles for the user- See Also:
-
DEFAULT_PERMISSIONS_QUERY
The default query to retrieve all permissions for the role- See Also:
-
DEFAULT_ROLE_PREFIX
The default role prefix- See Also:
-
-
Constructor Details
-
JDBCAuth
public JDBCAuth(io.vertx.ext.auth.jdbc.JDBCAuth delegate) -
JDBCAuth
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.jdbc.JDBCAuth getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classAuthProvider
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classAuthProvider
-
equals
- Overrides:
equals
in classAuthProvider
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAuthProvider
-
create
Deprecated.- Parameters:
vertx
-client
- the JDBC client instance- Returns:
- the auth provider
-
setAuthenticationQuery
Deprecated.- Parameters:
authenticationQuery
- the authentication query- Returns:
- a reference to this for fluency
-
setRolesQuery
Deprecated.- Parameters:
rolesQuery
- the roles query- Returns:
- a reference to this for fluency
-
setPermissionsQuery
Deprecated.- Parameters:
permissionsQuery
- the permissions query- Returns:
- a reference to this for fluency
-
setRolePrefix
Deprecated.- Parameters:
rolePrefix
- a Prefix e.g.: "role:"- Returns:
- a reference to this for fluency
-
computeHash
Deprecated.- Parameters:
password
- the unhashed passwordsalt
- the salt- Returns:
- the hashed password
-
computeHash
Deprecated.- Parameters:
password
- the unhashed passwordsalt
- the saltversion
- the nonce version to use- Returns:
- the hashed password
-
generateSalt
Deprecated.- Returns:
- a non null salt value
-
setNonces
Deprecated.- Parameters:
nonces
- a List of non null Strings.- Returns:
- a reference to this for fluency
-
newInstance
-