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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MongoAuthentication>
__TYPE_ARG
static String
DEFAULT_COLLECTION_NAME
The default name of the collection to be usedstatic 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)
static 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)
static String
DEFAULT_PASSWORD_FIELD
The default name of the property for the password, like it is stored in mongodbstatic String
DEFAULT_SALT_FIELD
The default name of the property for the salt fieldstatic String
DEFAULT_USERNAME_FIELD
The 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 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
equals(Object o)
io.vertx.ext.auth.mongo.MongoAuthentication
getDelegate()
String
hash(String id, String salt, String password)
String
hash(String id, Map<String,String> params, String salt, String password)
int
hashCode()
static MongoAuthentication
newInstance(io.vertx.ext.auth.mongo.MongoAuthentication arg)
String
toString()
-
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:
getDelegate
in classAuthenticationProvider
-
toString
public String toString()
- Overrides:
toString
in classAuthenticationProvider
-
equals
public boolean equals(Object o)
- 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
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)
-
-