Enum Class JoinCredentials.Verdict

java.lang.Object
java.lang.Enum<JoinCredentials.Verdict>
ai.badmonkey.agentspaces.peering.node.JoinCredentials.Verdict
All Implemented Interfaces:
Serializable, Comparable<JoinCredentials.Verdict>, Constable
Enclosing class:
JoinCredentials

public static enum JoinCredentials.Verdict extends Enum<JoinCredentials.Verdict>
What a verifier concludes about a credential (ISSUE-PeerRobustness-2, R2-1.7): EXPIRED is reserved for the delegated form whose every check passed except the delegation's expiry, so an admission memory can tell a lapsed member from a forgery without parsing the credential twice.
  • Enum Constant Details

    • VALID

      public static final JoinCredentials.Verdict VALID
      The credential admits the candidate now.
    • EXPIRED

      public static final JoinCredentials.Verdict EXPIRED
      A delegated credential that would admit the candidate but for the delegation's expiry.
    • INVALID

      public static final JoinCredentials.Verdict INVALID
      Malformed, wrong founder, wrong group, wrong candidate, or a bad signature.
  • Method Details

    • values

      public static JoinCredentials.Verdict[] 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 JoinCredentials.Verdict 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