Class AuthenticationProvider
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.authentication.AuthenticationProvider
-
- Direct Known Subclasses:
AuthProvider,ChainAuth,HotpAuth,HtdigestAuth,HtpasswdAuth,JDBCAuthentication,JWTAuth,LdapAuthentication,MongoAuthentication,OAuth2Auth,PropertyFileAuthentication,SqlAuthentication,TotpAuth,WebAuthn
public class AuthenticationProvider extends Object
User-facing interface for authenticating users. 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<AuthenticationProvider>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description AuthenticationProvider(AuthenticationProvider delegate)AuthenticationProvider(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidauthenticate(JsonObject credentials)Deprecated.voidauthenticate(JsonObject credentials, Handler<AsyncResult<User>> resultHandler)Deprecated.voidauthenticate(Credentials credentials)Authenticate a user.voidauthenticate(Credentials credentials, Handler<AsyncResult<User>> resultHandler)Authenticate a user.booleanequals(Object o)AuthenticationProvidergetDelegate()inthashCode()static AuthenticationProvidernewInstance(AuthenticationProvider arg)io.reactivex.Single<User>rxAuthenticate(JsonObject credentials)Deprecated.io.reactivex.Single<User>rxAuthenticate(Credentials credentials)Authenticate a user.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<AuthenticationProvider> __TYPE_ARG
-
-
Constructor Detail
-
AuthenticationProvider
public AuthenticationProvider(AuthenticationProvider delegate)
-
AuthenticationProvider
public AuthenticationProvider(Object delegate)
-
-
Method Detail
-
getDelegate
public AuthenticationProvider getDelegate()
-
authenticate
@Deprecated public void authenticate(JsonObject credentials, Handler<AsyncResult<User>> resultHandler)
Deprecated.Authenticate a user.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.
- Parameters:
credentials- The credentialsresultHandler- The result handler
-
authenticate
@Deprecated public void authenticate(JsonObject credentials)
Deprecated.Authenticate a user.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.
- Parameters:
credentials- The credentials
-
rxAuthenticate
@Deprecated public io.reactivex.Single<User> rxAuthenticate(JsonObject credentials)
Deprecated.Authenticate a user.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.
- Parameters:
credentials- The credentials- Returns:
-
authenticate
public void authenticate(Credentials credentials, Handler<AsyncResult<User>> resultHandler)
Authenticate a user.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.
- Parameters:
credentials- The credentialsresultHandler- The result handler
-
authenticate
public void authenticate(Credentials credentials)
Authenticate a user.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.
- Parameters:
credentials- The credentials
-
rxAuthenticate
public io.reactivex.Single<User> rxAuthenticate(Credentials credentials)
Authenticate a user.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.
- Parameters:
credentials- The credentials- Returns:
-
newInstance
public static AuthenticationProvider newInstance(AuthenticationProvider arg)
-
-