Interface MongoAuthentication
- All Superinterfaces:
AuthenticationProvider
An extension of AuthProvider which is using
MongoClient as store- Author:
- francoisprunier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default name of the collection to be usedstatic final StringThe default name of the property for the password, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.ext.auth.authentication.Credentials)static final StringThe default name of the property for the username, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.ext.auth.authentication.Credentials)static final StringThe default name of the property for the password, like it is stored in mongodbstatic final StringThe default name of the property for the username, like it is stored in mongodb -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoAuthenticationcreate(MongoClient mongoClient, MongoAuthenticationOptions options) Creates an instance of MongoAuth by using the givenMongoClientand configuration object.default StringHashes a password to be stored.Hashes a password to be stored.Methods inherited from interface AuthenticationProvider
authenticate
-
Field Details
-
DEFAULT_COLLECTION_NAME
-
DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb- See Also:
-
DEFAULT_PASSWORD_FIELD
The default name of the property for the password, like it is stored in mongodb- See Also:
-
DEFAULT_CREDENTIAL_USERNAME_FIELD
The default name of the property for the username, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.ext.auth.authentication.Credentials)- See Also:
-
DEFAULT_CREDENTIAL_PASSWORD_FIELD
The default name of the property for the password, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.ext.auth.authentication.Credentials)- See Also:
-
-
Method Details
-
create
Creates an instance of MongoAuth by using the givenMongoClientand configuration object.- Parameters:
mongoClient- an instance ofMongoClientto be used for data storage and retrivaloptions- the configuration object for the current instance.- Returns:
- the created instance of
MongoAuthentication
-
hash
-
hash
Hashes a password to be stored. See:HashingStrategy.hash(String, Map, String, String)
-