public class MongoAuthorizationOptions extends Object
Constructor and Description |
---|
MongoAuthorizationOptions() |
MongoAuthorizationOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionName() |
String |
getPermissionField() |
String |
getRoleField() |
String |
getUsernameField() |
MongoAuthorizationOptions |
setCollectionName(String collectionName)
The property name to be used to set the name of the collection inside the config.
|
MongoAuthorizationOptions |
setPermissionField(String permissionField)
The property name to be used to set the name of the field, where the permissions are stored inside.
|
MongoAuthorizationOptions |
setRoleField(String roleField)
The property name to be used to set the name of the field, where the roles are stored inside.
|
MongoAuthorizationOptions |
setUsernameField(String usernameField)
The property name to be used to set the name of the field, where the username is stored inside.
|
public MongoAuthorizationOptions()
public MongoAuthorizationOptions(JsonObject json)
public String getCollectionName()
public MongoAuthorizationOptions setCollectionName(String collectionName)
collectionName
- the collection namepublic String getUsernameField()
public MongoAuthorizationOptions setUsernameField(String usernameField)
usernameField
- the username fieldpublic String getRoleField()
public MongoAuthorizationOptions setRoleField(String roleField)
roleField
- the role fieldpublic String getPermissionField()
public MongoAuthorizationOptions setPermissionField(String permissionField)
permissionField
- the permission fieldCopyright © 2024 Eclipse. All rights reserved.