public interface MongoAuthentication extends AuthenticationProvider
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_CREDENTIAL_PASSWORD_FIELD
The default name of the property for the password, like it is transported in credentials by method
AuthenticationProvider.authenticate(JsonObject, Handler) |
static String |
DEFAULT_CREDENTIAL_USERNAME_FIELD
The default name of the property for the username, like it is transported in credentials by method
AuthenticationProvider.authenticate(JsonObject, Handler) |
static String |
DEFAULT_PASSWORD_FIELD
The default name of the property for the password, like it is stored in mongodb
|
static String |
DEFAULT_SALT_FIELD
The default name of the property for the salt field
|
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 MongoAuthentication |
create(MongoClient mongoClient,
HashStrategy hashStrategy,
MongoAuthenticationOptions options) |
static MongoAuthentication |
create(MongoClient mongoClient,
MongoAuthenticationOptions options)
Creates an instance of MongoAuth by using the given
MongoClient and configuration object. |
String |
hash(String id,
Map<String,String> params,
String salt,
String password)
Hashes a password to be stored.
|
default String |
hash(String id,
String salt,
String password)
Hashes a password to be stored.
|
authenticate, authenticate, authenticate, authenticate
static final String DEFAULT_COLLECTION_NAME
static final String DEFAULT_USERNAME_FIELD
static final String DEFAULT_PASSWORD_FIELD
static final String DEFAULT_CREDENTIAL_USERNAME_FIELD
AuthenticationProvider.authenticate(JsonObject, Handler)
static final String DEFAULT_CREDENTIAL_PASSWORD_FIELD
AuthenticationProvider.authenticate(JsonObject, Handler)
static final String DEFAULT_SALT_FIELD
static MongoAuthentication create(MongoClient mongoClient, MongoAuthenticationOptions options)
MongoClient
and configuration object.mongoClient
- an instance of MongoClient
to be used for data storage and retrivaloptions
- the configuration object for the current instance.MongoAuthentication
static MongoAuthentication create(MongoClient mongoClient, HashStrategy hashStrategy, MongoAuthenticationOptions options)
String hash(String id, Map<String,String> params, String salt, String password)
HashingStrategy.hash(String, Map, String, String)
default String hash(String id, String salt, String password)
HashingStrategy.hash(String, Map, String, String)
Copyright © 2024 Eclipse. All rights reserved.