public class AuthenticationProvider extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<AuthenticationProvider> |
__TYPE_ARG |
Constructor and Description |
---|
AuthenticationProvider(io.vertx.ext.auth.authentication.AuthenticationProvider delegate) |
AuthenticationProvider(Object delegate) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(io.vertx.ext.auth.authentication.Credentials credentials)
Authenticate a user.
|
void |
authenticate(io.vertx.ext.auth.authentication.Credentials credentials,
io.vertx.core.Handler<io.vertx.core.AsyncResult<User>> resultHandler)
Authenticate a user.
|
void |
authenticate(io.vertx.core.json.JsonObject credentials)
Authenticate a user.
|
void |
authenticate(io.vertx.core.json.JsonObject credentials,
io.vertx.core.Handler<io.vertx.core.AsyncResult<User>> resultHandler)
Authenticate a user.
|
boolean |
equals(Object o) |
io.vertx.ext.auth.authentication.AuthenticationProvider |
getDelegate() |
int |
hashCode() |
static AuthenticationProvider |
newInstance(io.vertx.ext.auth.authentication.AuthenticationProvider arg) |
rx.Single<User> |
rxAuthenticate(io.vertx.ext.auth.authentication.Credentials credentials)
Authenticate a user.
|
rx.Single<User> |
rxAuthenticate(io.vertx.core.json.JsonObject credentials)
Authenticate a user.
|
String |
toString() |
public static final TypeArg<AuthenticationProvider> __TYPE_ARG
public AuthenticationProvider(io.vertx.ext.auth.authentication.AuthenticationProvider delegate)
public AuthenticationProvider(Object delegate)
public io.vertx.ext.auth.authentication.AuthenticationProvider getDelegate()
public void authenticate(io.vertx.core.json.JsonObject credentials, io.vertx.core.Handler<io.vertx.core.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(io.vertx.core.json.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 rx.Single<User> rxAuthenticate(io.vertx.core.json.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(io.vertx.ext.auth.authentication.Credentials credentials, io.vertx.core.Handler<io.vertx.core.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(io.vertx.ext.auth.authentication.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 rx.Single<User> rxAuthenticate(io.vertx.ext.auth.authentication.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(io.vertx.ext.auth.authentication.AuthenticationProvider arg)
Copyright © 2021 Eclipse. All rights reserved.