Package co.ankatech.ankasecure.sdk.auth
Enum Class ClientCredentialsExchangeException.Phase
java.lang.Object
java.lang.Enum<ClientCredentialsExchangeException.Phase>
co.ankatech.ankasecure.sdk.auth.ClientCredentialsExchangeException.Phase
- All Implemented Interfaces:
Serializable,Comparable<ClientCredentialsExchangeException.Phase>,Constable
- Enclosing class:
- ClientCredentialsExchangeException
public static enum ClientCredentialsExchangeException.Phase
extends Enum<ClientCredentialsExchangeException.Phase>
Where in the exchange the failure happened. Exactly one applies to any failure.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe token endpoint answered, and refused the external credential.A response arrived but is not a usable discovery document: a non-200 status, a redirect, a body that is not JSON, a missing member, anissuerthat is not the configured one, or atoken_endpointthat is absent or not an absolutehttpsURL.The discovery document could not be fetched at all - no HTTP status was obtained.The document named atoken_endpointon an origin other than the issuer's own.The token endpoint could not be reached - no HTTP status was obtained.The token endpoint answered200with something that is not a usable token response: not JSON, noaccess_token, atoken_typeother thanBearer, or a non-positiveexpires_in. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DISCOVERY_UNREACHABLE
The discovery document could not be fetched at all - no HTTP status was obtained. -
DISCOVERY_MALFORMED
A response arrived but is not a usable discovery document: a non-200 status, a redirect, a body that is not JSON, a missing member, anissuerthat is not the configured one, or atoken_endpointthat is absent or not an absolutehttpsURL. -
TOKEN_ENDPOINT_OFF_ORIGIN
The document named atoken_endpointon an origin other than the issuer's own.Its own phase because it is the one failure here that is an ATTEMPT rather than a fault: the document is the remote party's to write, and this is the SDK refusing to post a credential to a host nobody configured. It is decided before any request object exists, so the named origin receives no connection.
-
TOKEN_ENDPOINT_UNREACHABLE
The token endpoint could not be reached - no HTTP status was obtained. -
CREDENTIALS_REFUSED
The token endpoint answered, and refused the external credential. Carries the status the authorization server returned, and nothing from its body. -
TOKEN_RESPONSE_MALFORMED
The token endpoint answered200with something that is not a usable token response: not JSON, noaccess_token, atoken_typeother thanBearer, or a non-positiveexpires_in.
-
-
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
-