Class AnonymousAuthenticationHandler

All Implemented Interfaces:

@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
      authenticate in class AuthenticationHandlerAdapter
      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.