Factory interface for creating AuthProvider instances that use the Vert.x JDBC client
Constructor and description |
---|
JDBCAuth
(java.lang.Object delegate) |
Type | Name and description |
---|---|
static JDBCAuth |
create(JDBCClient client) Create a JDBC auth provider implementation |
java.lang.Object |
getDelegate() |
JDBCAuth |
setAuthenticationQuery(java.lang.String authenticationQuery) Set the authentication query to use. |
JDBCAuth |
setPermissionsQuery(java.lang.String permissionsQuery) Set the permissions query to use. |
JDBCAuth |
setRolePrefix(java.lang.String rolePrefix) Set the role prefix to distinguish from permissions when checking for isPermitted requests. |
JDBCAuth |
setRolesQuery(java.lang.String rolesQuery) Set the roles query to use. |
Methods inherited from class | Name |
---|---|
class AuthProvider |
authenticate, getDelegate |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a JDBC auth provider implementation
client
- the JDBC client instanceSet the authentication query to use. Use this if you want to override the default authentication query.
authenticationQuery
- the authentication querySet the permissions query to use. Use this if you want to override the default permissions query.
permissionsQuery
- the permissions querySet the role prefix to distinguish from permissions when checking for isPermitted requests.
rolePrefix
- a Prefix e.g.: "role:"Set the roles query to use. Use this if you want to override the default roles query.
rolesQuery
- the roles query