public class JDBCAuth extends AuthProvider
AuthProvider
instances that use the Vert.x JDBC client
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<JDBCAuth> |
__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
computeHash(String password,
String salt,
int version)
Compute the hashed password given the unhashed password and the salt
The implementation relays to the JDBCHashStrategy provided.
|
static JDBCAuth |
create(Vertx vertx,
JDBCClient client)
Create a JDBC auth provider implementation
|
String |
generateSalt()
Compute a salt string.
|
JDBCAuth |
getDelegate() |
static JDBCAuth |
newInstance(JDBCAuth arg) |
JDBCAuth |
setAuthenticationQuery(String authenticationQuery)
Set the authentication query to use.
|
JDBCAuth |
setNonces(JsonArray nonces)
Provide a application configuration level on hash nonce's as a ordered list of
nonces where each position corresponds to a version.
|
JDBCAuth |
setPermissionsQuery(String permissionsQuery)
Set the permissions query to use.
|
JDBCAuth |
setRolePrefix(String rolePrefix)
Set the role prefix to distinguish from permissions when checking for isPermitted requests.
|
JDBCAuth |
setRolesQuery(String rolesQuery)
Set the roles query to use.
|
authenticate, newInstance, rxAuthenticate
public JDBCAuth(JDBCAuth delegate)
public JDBCAuth getDelegate()
getDelegate
in class AuthProvider
public static JDBCAuth create(Vertx vertx, JDBCClient client)
vertx
- client
- the JDBC client instancepublic JDBCAuth setAuthenticationQuery(String authenticationQuery)
authenticationQuery
- the authentication querypublic JDBCAuth setRolesQuery(String rolesQuery)
rolesQuery
- the roles querypublic JDBCAuth setPermissionsQuery(String permissionsQuery)
permissionsQuery
- the permissions querypublic JDBCAuth setRolePrefix(String rolePrefix)
rolePrefix
- a Prefix e.g.: "role:"public String computeHash(String password, String salt)
password
- the unhashed passwordsalt
- the saltpublic String computeHash(String password, String salt, int version)
password
- the unhashed passwordsalt
- the saltversion
- the nonce version to usepublic String generateSalt()
public JDBCAuth setNonces(JsonArray nonces)
nonces
- a List of non null Strings.Copyright © 2017. All rights reserved.