public interface MongoAuthorization extends AuthorizationProvider
MongoClient
as storeModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COLLECTION_NAME
The default name of the collection to be used
|
static String |
DEFAULT_PERMISSION_FIELD
The default name of the property for the permissions, like it is stored in mongodb.
|
static String |
DEFAULT_ROLE_FIELD
The default name of the property for the roles, like it is stored in mongodb.
|
static String |
DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb
|
Modifier and Type | Method and Description |
---|---|
static MongoAuthorization |
create(String providerId,
MongoClient mongoClient,
MongoAuthorizationOptions options)
Creates an instance of MongoAuthorization by using the given
MongoClient and configuration object. |
create, getAuthorizations, getAuthorizations, getId
static final String DEFAULT_COLLECTION_NAME
static final String DEFAULT_USERNAME_FIELD
static final String DEFAULT_ROLE_FIELD
static final String DEFAULT_PERMISSION_FIELD
static MongoAuthorization create(String providerId, MongoClient mongoClient, MongoAuthorizationOptions options)
MongoClient
and configuration object.providerId
- the provider ID to differentiate from othersmongoClient
- an instance of MongoClient
to be used for data storage and retrivaloptions
- the configuration object for the current instance.MongoAuthorization
Copyright © 2023 Eclipse. All rights reserved.