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
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 |
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, authenticateObservable, 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 generateSalt()
Copyright © 2017. All rights reserved.