Class OAuth2FailureContext
java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.filter.oauth2.OAuth2FailureContext
- All Implemented Interfaces:
Context
Context implementation to hold OAuth2 error details, should a failure occur during OAuth2 scenarios.- See Also:
-
Field Summary
FieldsFields inherited from class org.forgerock.services.context.AbstractContext
data -
Method Summary
Modifier and TypeMethodDescriptionGet a description of the failure that occurred, if known, for example as provided by AM.getError()Get the error that occurred, if known, for example as provided by AM.Get anyOAuth2ErrorExceptionassociated with the failure that occurred.static OAuth2FailureContextoauth2FailureContext(Context parent, OAuth2ErrorException exception) Create a newOAuth2FailureContext.Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
Field Details
-
NAME
TheOAuth2FailureContext's name.- See Also:
-
-
Method Details
-
oauth2FailureContext
public static OAuth2FailureContext oauth2FailureContext(Context parent, OAuth2ErrorException exception) Create a newOAuth2FailureContext.- Parameters:
parent- the parent context.exception- the cause of the failure.- Returns:
- a new OAuth2Failure context.
-
getError
Get the error that occurred, if known, for example as provided by AM.- Returns:
- the OAuth2 error
-
getDescription
Get a description of the failure that occurred, if known, for example as provided by AM.- Returns:
- the error description
-
getException
Get anyOAuth2ErrorExceptionassociated with the failure that occurred.- Returns:
- the
OAuth2ErrorExceptionassociated with the failure
-