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
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic JoinCredentials.VerdictReturns the enum constant of this class with the specified name.static JoinCredentials.Verdict[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALID
The credential admits the candidate now. -
EXPIRED
A delegated credential that would admit the candidate but for the delegation's expiry. -
INVALID
Malformed, wrong founder, wrong group, wrong candidate, or a bad signature.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-