Enum Class AuthorityExposurePolicy.Mode

java.lang.Object
java.lang.Enum<AuthorityExposurePolicy.Mode>
zeroecho.pki.server.AuthorityExposurePolicy.Mode
All Implemented Interfaces:
Serializable, Comparable<AuthorityExposurePolicy.Mode>, Constable
Enclosing class:
AuthorityExposurePolicy

public static enum AuthorityExposurePolicy.Mode extends Enum<AuthorityExposurePolicy.Mode>
Closed authority-exposure modes.
  • Enum Constant Details

    • ALL_REALM_AUTHORITIES

      public static final AuthorityExposurePolicy.Mode ALL_REALM_AUTHORITIES
      Every authority in the realm session is eligible for scoped exposure.
    • EXPLICIT_AUTHORITIES

      public static final AuthorityExposurePolicy.Mode EXPLICIT_AUTHORITIES
      Only the exact configured authority identities are eligible.
  • Method Details

    • values

      public static AuthorityExposurePolicy.Mode[] 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 AuthorityExposurePolicy.Mode 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
    • code

      public int code()
      Returns the stable persistence code.
      Returns:
      encoded exposure-mode code
    • fromCode

      public static AuthorityExposurePolicy.Mode fromCode(int code)
      Resolves one stable persistence code.
      Parameters:
      code - encoded exposure-mode code
      Returns:
      corresponding exposure mode
      Throws:
      IllegalArgumentException - if code is unknown