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.
  • Constructor Details

    • AnonymousAuthenticationHandler

      public AnonymousAuthenticationHandler()
  • Method Details

    • authenticate

      public void authenticate(Challenge challenge, Credentials credentials)
      Description copied from interface: AuthenticationHandler

      Authenticates 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:
      authenticate in interface AuthenticationHandler
      Overrides:
      authenticate in class AuthenticationHandlerAdapter
      Parameters:
      challenge - the authentication challenge
      credentials - the credentials supplied by client in case of non-recoverable error. An exception will immediately stop authentication process to failed state.