Enum Class OidcValidationException.Reason
- All Implemented Interfaces:
Serializable, Comparable<OidcValidationException.Reason>, Constable
- Enclosing class:
OidcValidationException
@Immutable
public static enum OidcValidationException.Reason
extends Enum<OidcValidationException.Reason>
Fixed OIDC validation reasons. A later release may add constants; switches should have a default branch.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe present access-token hash does not match the returned access token.The ID-token or signed-UserInfo algorithm is outside its effective allowlist.The audience does not include the configured client.Authentication time is absent after requesting maximum authentication age.The authentication time is too old or in the future beyond skew.The authorized party is not the client or an explicitly trusted party.The present code hash does not match the exchanged authorization code.The expiry time, allowing for skew, has been reached.A MAC ID token has more than one audience entry.The per-request HMAC client secret is missing, malformed or too short.The compact token, header or claims are malformed.The ID token is absent from a successful code-flow token response.The signature did not verify with a trusted key.The ID token uses an unsupported JOSE feature.The authentication context does not meet the configured requirement.The subject is absent, empty, non-ASCII or longer than 255 characters.The header marks a different JWT profile.The issued-at time is in the future beyond skew.The issuer or key-issuer binding does not match.A required JWT claim is missing.The nonce differs from the authenticated pending request.The required nonce is absent.The token's not-before time has not been reached.A refreshed ID token differs from the original session's continuity claims.A serialized continuity reference has invalid structure.The verified Entra tenant is denied by the application.The token response does not use the Bearer token type.The issued-at age exceeds the configured maximum plus skew.Another audience is not explicitly trusted.The supplied access token's known lifetime has ended.An endpoint access token cannot safely be sent as a Bearer header.The supplied authentication was validated for a different issuer or client.No UserInfo endpoint is configured or advertised.The response format differs from the client's registered signed/JSON policy.UserInfo is not a strict JSON object or has malformed claims.Signed UserInfo did not verify with a trusted key.UserInfo names a different subject from the validated ID token.Signed UserInfo uses an unsupported JOSE feature. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OidcValidationException.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ID_TOKEN_MISSING
The ID token is absent from a successful code-flow token response. -
ID_TOKEN_MALFORMED
The compact token, header or claims are malformed. -
ID_TOKEN_SIGNATURE_INVALID
The signature did not verify with a trusted key. -
ID_TOKEN_UNSUPPORTED
The ID token uses an unsupported JOSE feature. -
ALGORITHM_NOT_ALLOWED
The ID-token or signed-UserInfo algorithm is outside its effective allowlist. -
ISSUER_MISMATCH
The issuer or key-issuer binding does not match. -
TENANT_NOT_ALLOWED
The verified Entra tenant is denied by the application. -
AUDIENCE_MISMATCH
The audience does not include the configured client. -
UNTRUSTED_AUDIENCE
Another audience is not explicitly trusted. -
AUTHORIZED_PARTY_MISMATCH
The authorized party is not the client or an explicitly trusted party. -
MISSING_CLAIM
A required JWT claim is missing. -
EXPIRED
The expiry time, allowing for skew, has been reached. -
NOT_YET_VALID
The token's not-before time has not been reached. -
ISSUED_IN_FUTURE
The issued-at time is in the future beyond skew. -
TOO_OLD
The issued-at age exceeds the configured maximum plus skew. -
INVALID_SUBJECT
The subject is absent, empty, non-ASCII or longer than 255 characters. -
INVALID_TYPE
The header marks a different JWT profile. -
NONCE_MISSING
The required nonce is absent. -
NONCE_MISMATCH
The nonce differs from the authenticated pending request. -
AUTH_TIME_MISSING
Authentication time is absent after requesting maximum authentication age. -
AUTHENTICATION_TOO_OLD
The authentication time is too old or in the future beyond skew. -
INSUFFICIENT_ACR
The authentication context does not meet the configured requirement. -
ACCESS_TOKEN_HASH_MISMATCH
The present access-token hash does not match the returned access token. -
CODE_HASH_MISMATCH
The present code hash does not match the exchanged authorization code. -
TOKEN_TYPE_UNSUPPORTED
The token response does not use the Bearer token type. -
USERINFO_MALFORMED
UserInfo is not a strict JSON object or has malformed claims. -
USERINFO_SIGNATURE_INVALID
Signed UserInfo did not verify with a trusted key. -
USERINFO_UNSUPPORTED
Signed UserInfo uses an unsupported JOSE feature. -
USERINFO_FORMAT_MISMATCH
The response format differs from the client's registered signed/JSON policy. -
USERINFO_ENDPOINT_UNAVAILABLE
No UserInfo endpoint is configured or advertised. -
USERINFO_AUTHENTICATION_MISMATCH
The supplied authentication was validated for a different issuer or client. -
USERINFO_ACCESS_TOKEN_INVALID
An endpoint access token cannot safely be sent as a Bearer header. -
USERINFO_ACCESS_TOKEN_EXPIRED
The supplied access token's known lifetime has ended. -
USERINFO_SUBJECT_MISMATCH
UserInfo names a different subject from the validated ID token. -
HMAC_SECRET_INVALID
The per-request HMAC client secret is missing, malformed or too short. -
HMAC_MULTIPLE_AUDIENCES
A MAC ID token has more than one audience entry. -
SESSION_REFERENCE_INVALID
A serialized continuity reference has invalid structure. -
REFRESHED_ID_TOKEN_MISMATCH
A refreshed ID token differs from the original session's continuity claims.
-
-
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
-