Class AnonymousAuthenticationHandler
java.lang.Object
ch.tocco.nice2.security.spi.auth.AuthenticationHandlerAdapter
ch.tocco.nice2.security.impl.auth.AnonymousAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
@Component
@Order(0)
public class AnonymousAuthenticationHandler
extends AuthenticationHandlerAdapter
Handles authentication when
AnonymousCredentials are given.-
Field Summary
Fields inherited from interface AuthenticationHandler
ANONYMOUS_HANDLER_ORDER, API_KEY_PK_ATTRIBUTE, PRINCIPAL_PK_ATTRIBUTE, SESSION_HASH_HANDLER_ORDER, SESSION_ID_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(Challenge challenge, Credentials credentials) Authenticates the given challenge by voting for or against it.Methods inherited from class AuthenticationHandlerAdapter
getName, postAuthenticate, updateCredentialsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuthenticationHandler
postEventListeners
-
Constructor Details
-
AnonymousAuthenticationHandler
public AnonymousAuthenticationHandler()
-
-
Method Details
-
authenticate
Description copied from interface:AuthenticationHandlerAuthenticates the given challenge by voting for or against it.
If the supplied credentials are unknown to this handler, it may not vote at all, indicating no meaningful knowledge about the challenge.
- Specified by:
authenticatein interfaceAuthenticationHandler- Overrides:
authenticatein classAuthenticationHandlerAdapter- Parameters:
challenge- the authentication challengecredentials- the credentials supplied by client in case of non-recoverable error. An exception will immediately stop authentication process to failed state.
-