Class AuthenticationWarningContext

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

public final class AuthenticationWarningContext extends BaseContext
A context that holds information about authentication warnings.

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

Parent:
AuthenticationContext
Added:
After a warning is generated during authentication
  • Field Details

    • classifiedWarnings

      private Collection<String> classifiedWarnings
      Warning conditions detected through classified warning messages.
  • Constructor Details

    • AuthenticationWarningContext

      public AuthenticationWarningContext()
      Constructor.
  • Method Details

    • getClassifiedWarnings

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

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