public enum GspActivationStatus extends Enum<GspActivationStatus>
These codes are a stable contract: they appear in host logs and support tickets, so a value is never renamed or repurposed once shipped. New reasons are added at the end.
Note the asymmetry that the design requires. The code is written to the HOST's log together with an audit id so an operator can diagnose a refusal in seconds. It is NOT what an end user sees: an unauthorised caller gets a generic runtime error and no output at all, so a refusal never reveals which check failed and never emits a result anybody could mistake for real analysis.
| Enum Constant and Description |
|---|
ACTIVE
A valid, in-date entitlement for this build was accepted.
|
BAD_SIGNATURE
Well-formed, but the signature does not verify against the embedded public key.
|
EXPIRED
Signed correctly, but
exp is in the past. |
MALFORMED
Not a well-formed token — wrong encoding, truncated, not three parts.
|
MISSING
No entitlement was supplied.
|
NOT_YET_VALID
Signed correctly, but
nbf is in the future. |
UNKNOWN_KEY
Signed by a key id this build does not know — typically a rotation gap.
|
WRONG_AUDIENCE
Signed correctly, but addressed to a different audience than this runtime.
|
WRONG_BUILD
Signed correctly, but not valid for this GSP build.
|
WRONG_EDITION
Signed correctly, but does not grant the edition this jar requires.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid() |
static GspActivationStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GspActivationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GspActivationStatus ACTIVE
public static final GspActivationStatus MISSING
public static final GspActivationStatus MALFORMED
public static final GspActivationStatus BAD_SIGNATURE
public static final GspActivationStatus WRONG_AUDIENCE
public static final GspActivationStatus EXPIRED
exp is in the past.public static final GspActivationStatus NOT_YET_VALID
nbf is in the future.public static final GspActivationStatus WRONG_BUILD
public static final GspActivationStatus WRONG_EDITION
public static final GspActivationStatus UNKNOWN_KEY
public static GspActivationStatus[] values()
for (GspActivationStatus c : GspActivationStatus.values()) System.out.println(c);
public static GspActivationStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null