Package io.vertx.mutiny.ext.auth.mongo
Class MongoAuthentication
java.lang.Object
io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
io.vertx.mutiny.ext.auth.mongo.MongoAuthentication
- All Implemented Interfaces:
MutinyDelegate
An extension of AuthProvider which is using as store
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<MongoAuthentication>static 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.core.json.JsonObject)static final StringThe default name of the property for the username, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.core.json.JsonObject)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 salt fieldstatic final StringThe default name of the property for the username, like it is stored in mongodb -
Constructor Summary
ConstructorsConstructorDescriptionMongoAuthentication(io.vertx.ext.auth.mongo.MongoAuthentication delegate) MongoAuthentication(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoAuthenticationcreate(MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) static MongoAuthenticationcreate(MongoClient mongoClient, HashStrategy hashStrategy, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) booleanio.vertx.ext.auth.mongo.MongoAuthenticationinthashCode()static MongoAuthenticationnewInstance(io.vertx.ext.auth.mongo.MongoAuthentication arg) toString()Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
Field Details
-
__TYPE_ARG
-
DEFAULT_COLLECTION_NAME
The default name of the collection to be used- See Also:
-
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.core.json.JsonObject)- 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.core.json.JsonObject)- See Also:
-
DEFAULT_SALT_FIELD
The default name of the property for the salt field- See Also:
-
-
Constructor Details
-
MongoAuthentication
public MongoAuthentication(io.vertx.ext.auth.mongo.MongoAuthentication delegate) -
MongoAuthentication
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.mongo.MongoAuthentication getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classAuthenticationProvider- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toStringin classAuthenticationProvider
-
equals
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCodein classAuthenticationProvider
-
create
public static MongoAuthentication create(MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) - Parameters:
mongoClient- an instance of to be used for data storage and retrivaloptions- the configuration object for the current instance.- Returns:
- the created instance of
MongoAuthentication
-
create
public static MongoAuthentication create(MongoClient mongoClient, HashStrategy hashStrategy, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) -
hash
- Parameters:
id-params-salt-password-- Returns:
-
hash
- Parameters:
id-salt-password-- Returns:
-
newInstance
-