Interface Challenge

All Superinterfaces:
ImmutableChallenge
All Known Implementing Classes:
AuthChallenge

public interface Challenge extends ImmutableChallenge

A challenge is the information gathered by AuthenticationHandlers while in process of authenticating a subject. It is meant to be a challenge for authentication... which may succeed or fail.

Each registered handler gets a chance to vote for a subject that is about to gain access to part of the application. An AuthenticationHandler populates this object.

  • Method Details

    • setAuthenticationResult

      void setAuthenticationResult(AuthenticationResult authenticationResult)
      Sets the authentication result to this challenge.
    • vote

      void vote(ImmutableChallenge.State state)
      Vote for this challenge with an appropriate state.
    • setAttribute

      void setAttribute(String name, Object value)
    • removeAttribute

      void removeAttribute(String name)
    • addMessage

      void addMessage(String message)