Class MongoAuthentication
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.authentication.AuthenticationProvider
-
- io.vertx.reactivex.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 RX-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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.ext.auth.User>>)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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.ext.auth.User>>)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(MongoAuthentication delegate)MongoAuthentication(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoAuthenticationcreate(MongoClient mongoClient, MongoAuthenticationOptions options)Creates an instance of MongoAuth by using the given and configuration object.static MongoAuthenticationcreate(MongoClient mongoClient, HashStrategy hashStrategy, MongoAuthenticationOptions options)booleanequals(Object o)MongoAuthenticationgetDelegate()Stringhash(String id, String salt, String password)Hashes a password to be stored.Stringhash(String id, Map<String,String> params, String salt, String password)Hashes a password to be stored.inthashCode()static MongoAuthenticationnewInstance(MongoAuthentication arg)StringtoString()-
Methods inherited from class io.vertx.reactivex.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
-
-
-
-
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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.ext.auth.User>>)- 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, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.ext.auth.User>>)- 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(MongoAuthentication delegate)
-
MongoAuthentication
public MongoAuthentication(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classAuthenticationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAuthenticationProvider
-
getDelegate
public MongoAuthentication getDelegate()
- Overrides:
getDelegatein classAuthenticationProvider
-
create
public static MongoAuthentication create(MongoClient mongoClient, MongoAuthenticationOptions options)
Creates an instance of MongoAuth by using the given and configuration object.- 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, MongoAuthenticationOptions options)
-
hash
public String hash(String id, Map<String,String> params, String salt, String password)
Hashes a password to be stored. See:HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)- Parameters:
id-params-salt-password-- Returns:
-
hash
public String hash(String id, String salt, String password)
Hashes a password to be stored. See:HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)- Parameters:
id-salt-password-- Returns:
-
newInstance
public static MongoAuthentication newInstance(MongoAuthentication arg)
-
-