@NoImplement public interface AuthenticationHandler
Authentication
request.Modifier and Type | Method and Description |
---|---|
Authentication |
createAuthentication(Credentials credentials) |
CredentialsBuilder |
createCredentialsBuilder() |
Optional<Authentication> |
getAuthentication() |
void |
setAuthentication(Authentication authentication)
Updates the current context with the given
Authentication information. |
void |
setAuthentication(List<String> securityProviders,
Authentication authentication)
Updates the current context with the given
Authentication information. |
void setAuthentication(Authentication authentication) throws SecurityProviderNotFoundException, SecurityException, UnknownAuthenticationTypeException
Authentication
information.authentication
- the Authentication
used for setting up the new security contextSecurityProviderNotFoundException
- if no security provider able to authenticate the given authentication is foundSecurityException
- if an error occurs during the update of the security contextUnknownAuthenticationTypeException
- if no security provider able to handle the given authentication is foundvoid setAuthentication(List<String> securityProviders, Authentication authentication) throws SecurityProviderNotFoundException, SecurityException, UnknownAuthenticationTypeException
Authentication
information.securityProviders
- the List
of security providers that will be added to the SecurityManager
authentication
- the Authentication
used for setting up the new security contextSecurityProviderNotFoundException
- if no security provider able to authenticate the given authentication is foundSecurityException
- if an error occurs during the update of the security contextUnknownAuthenticationTypeException
- if no security provider able to handle the given authentication is foundOptional<Authentication> getAuthentication()
Authentication
in the current contextAuthentication createAuthentication(Credentials credentials)
credentials
- the Credentials
to be used for this
Authentication
Authentication
CredentialsBuilder createCredentialsBuilder()
CredentialsBuilder
Copyright © 2018. All rights reserved.