Class MongoAuthenticationOptions
java.lang.Object
io.vertx.ext.auth.mongo.MongoAuthenticationOptions
Options configuring Mongo authentication.
- Author:
- francoisprunier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetCollectionName(String collectionName) The property name to be used to set the name of the collection inside the config.setPasswordCredentialField(String passwordCredentialField) setPasswordField(String passwordField) The property name to be used to set the name of the field, where the password is stored insidesetUsernameCredentialField(String usernameCredentialField) The property name to be used to set the name of the field, where the username for the credentials is stored inside.setUsernameField(String usernameField) The property name to be used to set the name of the field, where the username is stored inside.
-
Constructor Details
-
MongoAuthenticationOptions
public MongoAuthenticationOptions() -
MongoAuthenticationOptions
-
-
Method Details
-
getCollectionName
-
setCollectionName
The property name to be used to set the name of the collection inside the config.- Parameters:
collectionName- the collection name- Returns:
- a reference to this, so the API can be used fluently
-
getUsernameField
-
setUsernameField
The property name to be used to set the name of the field, where the username is stored inside.- Parameters:
usernameField- the username field- Returns:
- a reference to this, so the API can be used fluently
-
getPasswordField
-
setPasswordField
The property name to be used to set the name of the field, where the password is stored inside- Parameters:
passwordField- the password field- Returns:
- a reference to this, so the API can be used fluently
-
getUsernameCredentialField
-
setUsernameCredentialField
The property name to be used to set the name of the field, where the username for the credentials is stored inside.- Parameters:
usernameCredentialField- the username credential field- Returns:
- a reference to this, so the API can be used fluently
-
getPasswordCredentialField
-
setPasswordCredentialField
-