public class AuthenticationProvider extends Object
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<AuthenticationProvider> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
AuthenticationProvider(AuthenticationProvider delegate)  | 
AuthenticationProvider(Object delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
authenticate(Credentials credentials)
Authenticate a user. 
 | 
void | 
authenticate(Credentials credentials,
            Handler<AsyncResult<User>> resultHandler)
Authenticate a user. 
 | 
void | 
authenticate(JsonObject credentials)
Authenticate a user. 
 | 
void | 
authenticate(JsonObject credentials,
            Handler<AsyncResult<User>> resultHandler)
Authenticate a user. 
 | 
boolean | 
equals(Object o)  | 
AuthenticationProvider | 
getDelegate()  | 
int | 
hashCode()  | 
static AuthenticationProvider | 
newInstance(AuthenticationProvider arg)  | 
Single<User> | 
rxAuthenticate(Credentials credentials)
Authenticate a user. 
 | 
Single<User> | 
rxAuthenticate(JsonObject credentials)
Authenticate a user. 
 | 
String | 
toString()  | 
public static final io.vertx.lang.rx.TypeArg<AuthenticationProvider> __TYPE_ARG
public AuthenticationProvider(AuthenticationProvider delegate)
public AuthenticationProvider(Object delegate)
public AuthenticationProvider getDelegate()
public void authenticate(JsonObject credentials, Handler<AsyncResult<User>> resultHandler)
The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:
   {
     "username": "tim",
     "password": "mypassword"
   }
 
 For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.
 If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.
credentials - The credentialsresultHandler - The result handlerpublic void authenticate(JsonObject credentials)
The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:
   {
     "username": "tim",
     "password": "mypassword"
   }
 
 For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.
 If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.
credentials - The credentialspublic Single<User> rxAuthenticate(JsonObject credentials)
The first argument is a JSON object containing information for authenticating the user. What this actually contains depends on the specific implementation. In the case of a simple username/password based authentication it is likely to contain a JSON object with the following structure:
   {
     "username": "tim",
     "password": "mypassword"
   }
 
 For other types of authentication it contain different information - for example a JWT token or OAuth bearer token.
 If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.
credentials - The credentialspublic void authenticate(Credentials credentials, Handler<AsyncResult<User>> resultHandler)
The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation. If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.
credentials - The credentialsresultHandler - The result handlerpublic void authenticate(Credentials credentials)
The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation. If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.
credentials - The credentialspublic Single<User> rxAuthenticate(Credentials credentials)
The first argument is a Credentials object containing information for authenticating the user. What this actually contains depends on the specific implementation. If the user is successfully authenticated a object is passed to the handler in an . The user object can then be used for authorisation.
credentials - The credentialspublic static AuthenticationProvider newInstance(AuthenticationProvider arg)
Copyright © 2021 Eclipse. All rights reserved.