Enum Class ApprovalService.Choice

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

public static enum ApprovalService.Choice extends Enum<ApprovalService.Choice>
Individual immutable approval choice.
  • Enum Constant Details

    • APPROVE

      public static final ApprovalService.Choice APPROVE
      Supports execution of the exact requested operation.
    • REJECT

      public static final ApprovalService.Choice REJECT
      Rejects execution of the exact requested operation.
  • Method Details

    • values

      public static ApprovalService.Choice[] 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 ApprovalService.Choice 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:
      stable persistence code
    • fromCode

      public static ApprovalService.Choice fromCode(int code)
      Resolves a stable persistence code.
      Parameters:
      code - persisted approval-choice code
      Returns:
      corresponding approval choice