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
-
public class MongoAuthentication extends AuthenticationProvider
An extension of AuthProvider which is using as store NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MongoAuthentication>__TYPE_ARGstatic StringDEFAULT_COLLECTION_NAMEThe default name of the collection to be usedstatic StringDEFAULT_CREDENTIAL_PASSWORD_FIELDThe default name of the property for the password, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.core.json.JsonObject)static StringDEFAULT_CREDENTIAL_USERNAME_FIELDThe default name of the property for the username, like it is transported in credentials by methodAuthenticationProvider.authenticate(io.vertx.core.json.JsonObject)static StringDEFAULT_PASSWORD_FIELDThe default name of the property for the password, like it is stored in mongodbstatic StringDEFAULT_SALT_FIELDThe default name of the property for the salt fieldstatic StringDEFAULT_USERNAME_FIELDThe default name of the property for the username, like it is stored in mongodb
-
Constructor Summary
Constructors Constructor Description MongoAuthentication(io.vertx.ext.auth.mongo.MongoAuthentication delegate)MongoAuthentication(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoAuthenticationcreate(MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options)static MongoAuthenticationcreate(MongoClient mongoClient, HashStrategy hashStrategy, io.vertx.ext.auth.mongo.MongoAuthenticationOptions options)booleanequals(Object o)io.vertx.ext.auth.mongo.MongoAuthenticationgetDelegate()Stringhash(String id, String salt, String password)Stringhash(String id, Map<String,String> params, String salt, String password)inthashCode()static MongoAuthenticationnewInstance(io.vertx.ext.auth.mongo.MongoAuthentication arg)StringtoString()-
Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MongoAuthentication> __TYPE_ARG
-
DEFAULT_COLLECTION_NAME
public static final String DEFAULT_COLLECTION_NAME
The default name of the collection to be used- See Also:
- Constant Field Values
-
DEFAULT_USERNAME_FIELD
public static final String DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD_FIELD
public static final String DEFAULT_PASSWORD_FIELD
The default name of the property for the password, like it is stored in mongodb- See Also:
- Constant Field Values
-
DEFAULT_CREDENTIAL_USERNAME_FIELD
public static final String 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:
- Constant Field Values
-
DEFAULT_CREDENTIAL_PASSWORD_FIELD
public static final String 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:
- Constant Field Values
-
DEFAULT_SALT_FIELD
public static final String DEFAULT_SALT_FIELD
The default name of the property for the salt field- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MongoAuthentication
public MongoAuthentication(io.vertx.ext.auth.mongo.MongoAuthentication delegate)
-
MongoAuthentication
public MongoAuthentication(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.mongo.MongoAuthentication getDelegate()
- Overrides:
getDelegatein classAuthenticationProvider
-
toString
public String toString()
- Overrides:
toStringin classAuthenticationProvider
-
equals
public boolean equals(Object o)
- 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
public String hash(String id, Map<String,String> params, String salt, String password)
- Parameters:
id-params-salt-password-- Returns:
-
hash
public String hash(String id, String salt, String password)
- Parameters:
id-salt-password-- Returns:
-
newInstance
public static MongoAuthentication newInstance(io.vertx.ext.auth.mongo.MongoAuthentication arg)
-
-