Enum Class StatusPolicy

java.lang.Object
java.lang.Enum<StatusPolicy>
swiss.trustbroker.federation.xmlconfig.StatusPolicy
All Implemented Interfaces:
Serializable, Comparable<StatusPolicy>, Constable

public enum StatusPolicy extends Enum<StatusPolicy>
Policy for handling if the user returned by the CP is not found or not active in the IDM.
Since:
1.7.0
  • Enum Constant Details

    • FETCH_ACTIVE_ONLY

      public static final StatusPolicy FETCH_ACTIVE_ONLY
      Only fetch active users from the IDM. This is the default.
    • BLOCK

      public static final StatusPolicy BLOCK
      Throw an exception, leading to the standard error page.
    • BLOCK_RESPONDER

      public static final StatusPolicy BLOCK_RESPONDER
      Send a SAML responder state UnknownPrincipal.
      See Also:
      • StatusCode.UNKNOWN_PRINCIPAL
    • BLOCK_EXCEPTION

      public static final StatusPolicy BLOCK_EXCEPTION
      Display 'unknownuser' error page with text and instructions and a button continue to application.
    • BLOCK_UNKNOWN_USER

      public static final StatusPolicy BLOCK_UNKNOWN_USER
      Display 'unknownuser' error page with text and instructions.
    • ALLOW_UNKNOWN_USER

      public static final StatusPolicy ALLOW_UNKNOWN_USER
      Proceed anyway.
  • Method Details

    • values

      public static StatusPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StatusPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static StatusPolicy of(String name)