Class AuthenticationErrorContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.authn.context.AuthenticationErrorContext
All Implemented Interfaces:
Iterable<BaseContext>

public final class AuthenticationErrorContext extends BaseContext
A context that holds information about authentication failures.

The login process is particularly prone to requiring detailed error information to provide appropriate user feedback and auditing, and this context tracks errors that occur and preserves detailed information about the kind of errors encountered in multi-part authentication flows.

Parent:
AuthenticationContext
Added:
After authentication fails
  • Field Details

  • Constructor Details

    • AuthenticationErrorContext

      public AuthenticationErrorContext()
      Constructor.
  • Method Details

    • getExceptions

      @Nonnull @NonnullElements @Live public List<Exception> getExceptions()
      Get an immutable list of the exceptions encountered.
      Returns:
      immutable list of exceptions
    • addException

      @Deprecated(forRemoval=true, since="4.0.0") public void addException(@Nonnull Exception e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add an exception to the list.
      Parameters:
      e - exception to add
    • getClassifiedErrors

      @Nonnull @NonnullElements @Live public Collection<String> getClassifiedErrors()
      Get a mutable collection of error "tokens" associated with the context.
      Returns:
      mutable collection of error strings
    • isClassifiedError

      public boolean isClassifiedError(@Nonnull @NotEmpty String error)
      Check for the presence of a particular error condition in the context.
      Parameters:
      error - the condition to check for
      Returns:
      true iff the context contains the error condition specified