public class JDBCAuthOptions extends Object implements AuthOptions
| Constructor and Description |
|---|
JDBCAuthOptions() |
JDBCAuthOptions(JDBCAuthOptions that) |
JDBCAuthOptions(JsonObject json) |
| Modifier and Type | Method and Description |
|---|---|
JDBCAuthOptions |
clone() |
JDBCAuth |
createProvider(Vertx vertx)
Create the suitable provider for this option.
|
String |
getAuthenticationQuery() |
JsonObject |
getConfig() |
String |
getDatasourceName() |
String |
getPermissionsQuery() |
String |
getRolesPrefix() |
String |
getRolesQuery() |
boolean |
isShared() |
JDBCAuthOptions |
setAuthenticationQuery(String authenticationQuery)
Set the authentication query to use.
|
JDBCAuthOptions |
setConfig(JsonObject config)
The configuration of the JDBC client: refer to the Vert.x JDBC Client configuration.
|
JDBCAuthOptions |
setDatasourceName(String datasourceName)
Set the data source name to use, only use in shared mode.
|
JDBCAuthOptions |
setPermissionsQuery(String permissionsQuery)
Set the permissions query to use.
|
JDBCAuthOptions |
setRolesPrefix(String rolesPrefix)
Set the role prefix to distinguish from permissions when checking for isPermitted requests.
|
JDBCAuthOptions |
setRolesQuery(String rolesQuery)
Set the roles query to use.
|
JDBCAuthOptions |
setShared(boolean shared)
Set whether the JDBC client is shared or non shared.
|
public JDBCAuthOptions()
public JDBCAuthOptions(JDBCAuthOptions that)
public JDBCAuthOptions(JsonObject json)
public JDBCAuthOptions clone()
clone in interface AuthOptionsclone in class Objectpublic JDBCAuth createProvider(Vertx vertx)
AuthOptionscreateProvider in interface AuthOptionsvertx - the vertx instancepublic boolean isShared()
public JDBCAuthOptions setShared(boolean shared)
shared - the sharing modepublic String getDatasourceName()
public JDBCAuthOptions setDatasourceName(String datasourceName)
datasourceName - the data source namepublic JsonObject getConfig()
public JDBCAuthOptions setConfig(JsonObject config)
config - public String getAuthenticationQuery()
public JDBCAuthOptions setAuthenticationQuery(String authenticationQuery)
authenticationQuery - the authentication querypublic String getRolesQuery()
public JDBCAuthOptions setRolesQuery(String rolesQuery)
rolesQuery - the roles querypublic String getPermissionsQuery()
public JDBCAuthOptions setPermissionsQuery(String permissionsQuery)
permissionsQuery - the permissions querypublic String getRolesPrefix()
public JDBCAuthOptions setRolesPrefix(String rolesPrefix)
rolesPrefix - roles prefixCopyright © 2016. All rights reserved.