|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<VerifyResult>
net.adamcin.httpsig.api.VerifyResult
public enum VerifyResult
Enumeration of possible results from Verifier.verifyWithResult(Challenge, RequestContent, Authorization)
| Enum Constant Summary | |
|---|---|
CHALLENGE_NOT_SATISFIED
Authorization does not declare all the headers required by the Challenge |
|
EXPIRED_DATE_HEADER
The value of the date header falls outside of the current time of the Verifier, plus or minus the skew |
|
FAILED_KEY_VERIFY
The selected Key rejected the signature as invalid |
|
INCOMPLETE_REQUEST
Not all headers identified by the Authorization are present in the RequestContent |
|
KEY_NOT_FOUND
The Verifier cannot find a Key matching the keyId of the Authorization |
|
SUCCESS
Signature is valid |
|
| Method Summary | |
|---|---|
static VerifyResult |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static VerifyResult[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final VerifyResult SUCCESS
public static final VerifyResult CHALLENGE_NOT_SATISFIED
Authorization does not declare all the headers required by the Challenge
public static final VerifyResult INCOMPLETE_REQUEST
Authorization are present in the RequestContent
public static final VerifyResult EXPIRED_DATE_HEADER
Verifier, plus or minus the skew
public static final VerifyResult KEY_NOT_FOUND
Verifier cannot find a Key matching the keyId of the Authorization
public static final VerifyResult FAILED_KEY_VERIFY
Key rejected the signature as invalid
| Method Detail |
|---|
public static VerifyResult[] values()
for (VerifyResult c : VerifyResult.values()) System.out.println(c);
public static VerifyResult valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||