public enum VerifyResult extends Enum<VerifyResult>
Verifier.verifyWithResult(Challenge, RequestContent, Authorization)
Enum Constant and Description |
---|
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
|
SUCCESS
Signature is valid
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 skewpublic static final VerifyResult KEY_NOT_FOUND
public static final VerifyResult FAILED_KEY_VERIFY
Key
rejected the signature as invalidpublic 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 nameNullPointerException
- if the argument is nullCopyright © 2013-2017. All Rights Reserved.