public class MongoAuthOptions extends Object implements AuthOptions
Constructor and Description |
---|
MongoAuthOptions() |
MongoAuthOptions(JsonObject json) |
MongoAuthOptions(MongoAuthOptions that) |
Modifier and Type | Method and Description |
---|---|
MongoAuthOptions |
clone() |
MongoAuth |
createProvider(Vertx vertx)
Create the suitable provider for this option.
|
String |
getCollectionName() |
JsonObject |
getConfig() |
String |
getDatasourceName() |
String |
getPasswordField() |
String |
getPermissionField() |
String |
getRoleField() |
String |
getSaltField() |
HashSaltStyle |
getSaltStyle() |
boolean |
getShared() |
String |
getUsernameCredentialField() |
String |
getUsernameField() |
MongoAuthOptions |
setCollectionName(String collectionName)
The property name to be used to set the name of the collection inside the config.
|
MongoAuthOptions |
setConfig(JsonObject config)
The mongo client configuration: see Mongo Client documentation.
|
MongoAuthOptions |
setDatasourceName(String datasourceName)
The mongo data source name: see Mongo Client documentation.
|
MongoAuthOptions |
setPasswordField(String passwordField)
The property name to be used to set the name of the field, where the password is stored inside
|
MongoAuthOptions |
setPermissionField(String permissionField)
The property name to be used to set the name of the field, where the permissions are stored inside.
|
MongoAuthOptions |
setRoleField(String roleField)
The property name to be used to set the name of the field, where the roles are stored inside.
|
MongoAuthOptions |
setSaltField(String saltField)
The property name to be used to set the name of the field, where the SALT is stored inside.
|
MongoAuthOptions |
setSaltStyle(HashSaltStyle saltStyle)
The property name to be used to set the name of the field, where the salt style is stored inside
|
MongoAuthOptions |
setShared(boolean shared)
Use a shared Mongo client or not.
|
MongoAuthOptions |
setUsernameCredentialField(String usernameCredentialField)
The property name to be used to set the name of the field, where the username for the credentials is stored inside.
|
MongoAuthOptions |
setUsernameField(String usernameField)
The property name to be used to set the name of the field, where the username is stored inside.
|
public MongoAuthOptions()
public MongoAuthOptions(MongoAuthOptions that)
public MongoAuthOptions(JsonObject json)
public MongoAuthOptions clone()
clone
in interface AuthOptions
clone
in class Object
public MongoAuth createProvider(Vertx vertx)
AuthOptions
createProvider
in interface AuthOptions
vertx
- the vertx instancepublic boolean getShared()
public MongoAuthOptions setShared(boolean shared)
shared
- true to use a shared clientpublic String getDatasourceName()
public MongoAuthOptions setDatasourceName(String datasourceName)
datasourceName
- the data source namepublic JsonObject getConfig()
public MongoAuthOptions setConfig(JsonObject config)
config
- the mongo configpublic String getCollectionName()
public MongoAuthOptions setCollectionName(String collectionName)
collectionName
- the collection namepublic String getUsernameField()
public MongoAuthOptions setUsernameField(String usernameField)
usernameField
- the username fieldpublic String getPasswordField()
public MongoAuthOptions setPasswordField(String passwordField)
passwordField
- the password fieldpublic String getRoleField()
public MongoAuthOptions setRoleField(String roleField)
roleField
- the role fieldpublic String getPermissionField()
public MongoAuthOptions setPermissionField(String permissionField)
permissionField
- the permission fieldpublic String getUsernameCredentialField()
public MongoAuthOptions setUsernameCredentialField(String usernameCredentialField)
usernameCredentialField
- the username credential fieldpublic String getSaltField()
public MongoAuthOptions setSaltField(String saltField)
saltField
- the salt fieldpublic HashSaltStyle getSaltStyle()
public MongoAuthOptions setSaltStyle(HashSaltStyle saltStyle)
saltStyle
- the salt styleCopyright © 2023 Eclipse. All rights reserved.