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 String
The default name of the collection to be usedstatic final String
The default name of the property for the password, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.core.json.JsonObject)
static final String
The default name of the property for the username, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.core.json.JsonObject)
static final String
The default name of the property for the password, like it is stored in mongodbstatic final String
The default name of the property for the salt fieldstatic final String
The 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 MongoAuthentication
create
(MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) static MongoAuthentication
create
(MongoClient mongoClient, HashStrategy hashStrategy, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options) boolean
io.vertx.ext.auth.mongo.MongoAuthentication
int
hashCode()
static MongoAuthentication
newInstance
(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:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classAuthenticationProvider
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classAuthenticationProvider
-
equals
- Overrides:
equals
in classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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
-