public class MongoAuthentication extends AuthenticationProvider
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<MongoAuthentication> |
__TYPE_ARG |
static String |
DEFAULT_COLLECTION_NAME
The default name of the collection to be used
|
static String |
DEFAULT_CREDENTIAL_PASSWORD_FIELD
The default name of the property for the password, like it is transported in credentials by method
AuthenticationProvider.authenticate(io.vertx.core.json.JsonObject, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.auth.User>>) |
static String |
DEFAULT_CREDENTIAL_USERNAME_FIELD
The default name of the property for the username, like it is transported in credentials by method
AuthenticationProvider.authenticate(io.vertx.core.json.JsonObject, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.auth.User>>) |
static String |
DEFAULT_PASSWORD_FIELD
The default name of the property for the password, like it is stored in mongodb
|
static String |
DEFAULT_SALT_FIELD
The default name of the property for the salt field
|
static String |
DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb
|
Constructor and Description |
---|
MongoAuthentication(MongoAuthentication delegate) |
MongoAuthentication(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static MongoAuthentication |
create(MongoClient mongoClient,
HashStrategy hashStrategy,
MongoAuthenticationOptions options) |
static MongoAuthentication |
create(MongoClient mongoClient,
MongoAuthenticationOptions options)
Creates an instance of MongoAuth by using the given and configuration object.
|
boolean |
equals(Object o) |
MongoAuthentication |
getDelegate() |
String |
hash(String id,
Map<String,String> params,
String salt,
String password)
Hashes a password to be stored.
|
String |
hash(String id,
String salt,
String password)
Hashes a password to be stored.
|
int |
hashCode() |
static MongoAuthentication |
newInstance(MongoAuthentication arg) |
String |
toString() |
authenticate, authenticate, authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<MongoAuthentication> __TYPE_ARG
public static final String DEFAULT_COLLECTION_NAME
public static final String DEFAULT_USERNAME_FIELD
public static final String DEFAULT_PASSWORD_FIELD
public static final String DEFAULT_CREDENTIAL_USERNAME_FIELD
AuthenticationProvider.authenticate(io.vertx.core.json.JsonObject, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.auth.User>>)
public static final String DEFAULT_CREDENTIAL_PASSWORD_FIELD
AuthenticationProvider.authenticate(io.vertx.core.json.JsonObject, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.ext.auth.User>>)
public static final String DEFAULT_SALT_FIELD
public MongoAuthentication(MongoAuthentication delegate)
public MongoAuthentication(Object delegate)
public String toString()
toString
in class AuthenticationProvider
public boolean equals(Object o)
equals
in class AuthenticationProvider
public int hashCode()
hashCode
in class AuthenticationProvider
public MongoAuthentication getDelegate()
getDelegate
in class AuthenticationProvider
public static MongoAuthentication create(MongoClient mongoClient, MongoAuthenticationOptions options)
mongoClient
- an instance of to be used for data storage and retrivaloptions
- the configuration object for the current instance.MongoAuthentication
public static MongoAuthentication create(MongoClient mongoClient, HashStrategy hashStrategy, MongoAuthenticationOptions options)
public String hash(String id, Map<String,String> params, String salt, String password)
HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
id
- params
- salt
- password
- public String hash(String id, String salt, String password)
HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
id
- salt
- password
- public static MongoAuthentication newInstance(MongoAuthentication arg)
Copyright © 2022 Eclipse. All rights reserved.