Enum Class DisclosureService.Policy

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

public static enum DisclosureService.Policy extends Enum<DisclosureService.Policy>
Persisted disclosure states, independent of issuance and publication.
  • Enum Constant Details

    • PUBLIC

      public static final DisclosureService.Policy PUBLIC
      Content is publicly retrievable and may be listed.
    • PUBLIC_UNLISTED

      public static final DisclosureService.Policy PUBLIC_UNLISTED
      Content is public only through a point-addressable bearer.
    • AUTHENTICATED

      public static final DisclosureService.Policy AUTHENTICATED
      Any authenticated non-public principal may retrieve content.
    • OWNER_ONLY

      public static final DisclosureService.Policy OWNER_ONLY
      Only the owner or an administrator may retrieve content.
    • RESTRICTED

      public static final DisclosureService.Policy RESTRICTED
      Only explicitly authorized administrators may retrieve content.
    • NOT_PUBLISHED

      public static final DisclosureService.Policy NOT_PUBLISHED
      Content must not be served.
  • Method Details

    • values

      public static DisclosureService.Policy[] 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 DisclosureService.Policy 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 value
    • fromCode

      public static DisclosureService.Policy fromCode(int code)
      Resolves a stable persistence code.
      Parameters:
      code - persisted disclosure-policy code
      Returns:
      corresponding disclosure policy