Class MongoAuthorizationOptions
java.lang.Object
io.vertx.ext.auth.mongo.MongoAuthorizationOptions
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.setPermissionField(String permissionField) The property name to be used to set the name of the field, where the permissions are stored inside.setRoleField(String roleField) The property name to be used to set the name of the field, where the roles are 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
-
MongoAuthorizationOptions
public MongoAuthorizationOptions() -
MongoAuthorizationOptions
-
-
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
-
getRoleField
-
setRoleField
The property name to be used to set the name of the field, where the roles are stored inside.- Parameters:
roleField- the role field- Returns:
- a reference to this, so the API can be used fluently
-
getPermissionField
-
setPermissionField
The property name to be used to set the name of the field, where the permissions are stored inside.- Parameters:
permissionField- the permission field- Returns:
- a reference to this, so the API can be used fluently
-