public interface JDBCAuth extends AuthProvider
AuthProvider instances that use the Vert.x JDBC client| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AUTHENTICATE_QUERY
The default query to be used for authentication
|
static String |
DEFAULT_PERMISSIONS_QUERY
The default query to retrieve all permissions for the role
|
static String |
DEFAULT_ROLE_PREFIX
The default role prefix
|
static String |
DEFAULT_ROLES_QUERY
The default query to retrieve all roles for the user
|
| Modifier and Type | Method and Description |
|---|---|
static JDBCAuth |
create(JDBCClient client)
Create a JDBC auth provider implementation
|
JDBCAuth |
setAuthenticationQuery(String authenticationQuery)
Set the authentication query to use.
|
JDBCAuth |
setHashStrategy(JDBCHashStrategy strategy)
Set the hash strategy 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.
|
authenticatestatic final String DEFAULT_AUTHENTICATE_QUERY
static final String DEFAULT_ROLES_QUERY
static final String DEFAULT_PERMISSIONS_QUERY
static final String DEFAULT_ROLE_PREFIX
static JDBCAuth create(JDBCClient client)
client - the JDBC client instanceJDBCAuth setAuthenticationQuery(String authenticationQuery)
authenticationQuery - the authentication queryJDBCAuth setRolesQuery(String rolesQuery)
rolesQuery - the roles queryJDBCAuth setPermissionsQuery(String permissionsQuery)
permissionsQuery - the permissions queryJDBCAuth setRolePrefix(String rolePrefix)
rolePrefix - a Prefix e.g.: "role:"JDBCAuth setHashStrategy(JDBCHashStrategy strategy)
strategy - the strategyCopyright © 2015. All rights reserved.