Class AuthenticationProvider
- All Implemented Interfaces:
MutinyDelegate
- Direct Known Subclasses:
ChainAuth,HotpAuth,HtdigestAuth,HtpasswdAuth,JWTAuth,LdapAuthentication,MongoAuthentication,OAuth2Auth,PropertyFileAuthentication,SqlAuthentication,TotpAuth,WebAuthn4J
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
AuthenticationProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationProvider(io.vertx.ext.auth.authentication.AuthenticationProvider delegate) Create a new instance ofAuthenticationProviderdelegating to the given (non-null) instance ofAuthenticationProvider.AuthenticationProvider(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<User>authenticate(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.authenticateAndAwait(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.authenticateAndForget(io.vertx.ext.auth.authentication.Credentials credentials) Authenticate a user.booleanio.vertx.ext.auth.authentication.AuthenticationProviderGet the delegate instance.inthashCode()static AuthenticationProvidernewInstance(io.vertx.ext.auth.authentication.AuthenticationProvider delegate) Creates a new instance of theAuthenticationProvider.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
AuthenticationProvider
public AuthenticationProvider(io.vertx.ext.auth.authentication.AuthenticationProvider delegate) Create a new instance ofAuthenticationProviderdelegating to the given (non-null) instance ofAuthenticationProvider. -
AuthenticationProvider
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.authentication.AuthenticationProvider getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
authenticate
@CheckReturnValue public io.smallrye.mutiny.Uni<User> authenticate(io.vertx.ext.auth.authentication.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.
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
credentials- The credentials- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AuthenticationProvider.authenticate(Credentials)
-
authenticateAndAwait
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.
Unlike the bare Vert.x variant, this method returns a
User. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
credentials- The credentials- Returns:
- The operation result
- See Also:
-
AuthenticationProvider.authenticate(Credentials)
-
authenticateAndForget
public AuthenticationProvider authenticateAndForget(io.vertx.ext.auth.authentication.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.
Unlike the bare Vert.x variant, this method ignores the
Userresult or any failure.- Parameters:
credentials- The credentials- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AuthenticationProvider.authenticate(Credentials)
-
newInstance
public static AuthenticationProvider newInstance(io.vertx.ext.auth.authentication.AuthenticationProvider delegate) Creates a new instance of theAuthenticationProvider. -
hashCode
public int hashCode() -
equals
-
toString
-