public interface IdentityProvider<T extends AuthenticationRequest>
As the requirements for different providers are often different this interface has purposefully been made minimal. Interfaces that extend IdentityProvider should be created for different use cases, which can then be used directly.
IdentityProviderManager should be used to get a specific type of IdentityProvider for a specific
use case.
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<SecurityIdentity> |
authenticate(T request,
AuthenticationRequestContext context)
Attempts to authenticate the given authentication request.
|
Class<T> |
getRequestType() |
CompletionStage<SecurityIdentity> authenticate(T request, AuthenticationRequestContext context)
AuthenticationFailedException, otherwise
it should complete with a null value.
Any other failure mode will be interpreted as a failure in the underlying store (e.g. LDAP is down), rather
than the credentials being invalid. If multiple providers are installed that can handle the same type of request
an AuthenticationFailedException will immediately stop processing, while any other failure will allow
processing to continue.
request - The authentication requestcontext - The context of the requestCopyright © 2019 JBoss by Red Hat. All rights reserved.