Uses of Class
org.forgerock.oauth.OAuthException
Package
Description
Commons OAuth Framework API.
Forgerock Apple Client implementation.
Forgerock Facebook Client Implementation.
Forgerock LinkedIn Client Implementation.
OAuth 2.0 ForgeRock Client Implementation.
OpenID Connect ForgeRock Client Implementation.
-
Uses of OAuthException in org.forgerock.oauth
Modifier and TypeClassDescriptionclass
Exception to be used when an error has occurred while interacting with the data store.class
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).class
Exception to be used when an OAuth Request cannot be handled due to known causes.class
Exception used when an error has occurred with an OAuth client's configuration.Modifier and TypeMethodDescription<V> Promise<V,
OAuthException> OAuthException.asPromise()
Return this OAuthException as a Promise.OAuthClient.getAuthRedirect
(DataStore dataStore, String data, URI landingPage) Return the URI that the user agent should be redirected to, to authenticate and authorize access.Promise<? extends SessionInfo,
OAuthException> OAuthClient.getSessionInfo
(DataStore dataStore) Validate whether an Auth Server session is still active and valid.OAuthClient.getUserInfo
(DataStore dataStore) Return the authenticated user's info from the external authentication server.OAuthClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) Handle the data produced by the Auth Server as a result of a successful authentication and return the final redirect to the mobile device.Handle the data produced by the Auth Server as a result of a successful authentication and return the final redirect to the landing page specified in theOAuthClient.getAuthRedirect(DataStore, String, URI)
call.Refreshes a token if it has expired.Modifier and TypeMethodDescriptionDataStore.getProvider()
Returns the provider that the associated DataStore implementation has been instantiated for.UserInfo.getRawProfile()
Gets the user raw profile data without any modifications that was returned by the auth server.UserInfo.getSubject()
The subject which identifies a user on a particular auth server.DataStore.retrieveData()
Returns the stored data.void
Stores the data. -
Uses of OAuthException in org.forgerock.oauth.clients.apple
Modifier and TypeMethodDescriptionAppleClient.getUserInfo
(DataStore dataStore) AppleClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> requestParameters) -
Uses of OAuthException in org.forgerock.oauth.clients.facebook
Modifier and TypeMethodDescriptionprotected Promise<JsonValue,
OAuthException> FacebookClient.getAppAccessToken
(Context context) Retrieves the app access token from IDP.protected AsyncFunction<JsonValue,
JsonValue, OAuthException> FacebookClient.getInputTokenInfo
(Context context, String inputToken) Retrieves the access token information as aJsonValue
.FacebookClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) protected Function<JsonValue,
JsonValue, OAuthException> FacebookClient.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) Modifier and TypeMethodDescriptionprotected Promise<JsonValue,
OAuthException> FacebookClient.getAppAccessToken
(Context context) Retrieves the app access token from IDP. -
Uses of OAuthException in org.forgerock.oauth.clients.linkedin
-
Uses of OAuthException in org.forgerock.oauth.clients.oauth2
Modifier and TypeFieldDescriptionprotected final Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.addExpireTime
Adds the actual time the token expires.Modifier and TypeMethodDescriptionprotected final Function<Void,
JsonValue, OAuthException> OAuth2Client.createPostAuthResponse
(JsonValue storedData) Creates the post auth response.protected Promise<JsonValue,
OAuthException> OAuth2Client.createPostResponse
(DataStore dataStore, JsonValue storedData) Creates the post response.protected Promise<Request,
OAuthException> OAuth2Client.createRequestForIntrospectEndpoint
(String accessToken) Creates aRequest
for the introspect endpoint of an identity provider.protected Promise<Request,
OAuthException> OAuth2Client.createRequestForTokenEndpoint
(String code) Deprecated.protected Promise<Request,
OAuthException> OAuth2Client.createRequestForTokenEndpoint
(String code, String pkceVerifier) Creates aRequest
for the token endpoint of an identity provider.protected Promise<Request,
OAuthException> OAuth2Client.createRequestForTokenRefresh
(JsonValue storedData) Creates aRequest
for the token refresh endpoint of an identity provider.protected Promise<JsonValue,
OAuthException> OAuth2Client.getAccessTokenInfo
(Context context, String accessToken) Retrieves the access token information as aJsonValue
.OAuth2Client.getAuthRedirect
(DataStore dataStore, String data, URI landingPage) Promise<? extends OAuth2SessionInfo,
OAuthException> OAuth2Client.getSessionInfo
(DataStore dataStore) OAuth2Client.getUserInfo
(DataStore dataStore) OAuth2Client.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) protected static AsyncFunction<Response,
JsonValue, OAuthException> OAuth2Client.mapToJsonValue()
AnAsyncFunction
that handles aResponse
from an Auth Server that returns the HTTP entity content as JsonValue, and throws anOAuthException
if the response is not successful (200 family status code), or if the content is not a valid JSON.protected final Function<JsonValue,
UserInfo, OAuthException> OAuth2Client.mapToUserInfo()
Creates aOAuth2UserInfo
using a users raw profile.protected final Function<JsonValue,
Void, OAuthException> OAuth2Client.storeResponse
(DataStore dataStore) Stores all the information received from an authentication or authorization server.protected static <T> Function<NoSuchSecretException,
T, OAuthException> OAuth2Client.throwIfNoClientSecret()
Handles a missing client secret.protected Function<JsonValue,
JsonValue, OAuthException> OAuth2Client.validateClientId
(DataStore dataStore, JsonValue storedData, String inputToken) Compare client_id from access token associated data with configured client_id.Modifier and TypeMethodDescriptionprotected Promise<JsonValue,
OAuthException> OAuth2Client.createPostResponse
(DataStore dataStore, JsonValue storedData) Creates the post response.protected static final String
OAuth2Client.getAccessToken
(JsonValue data) Retrieves an access token from aJsonValue
.ModifierConstructorDescriptionprotected
OAuth2SessionInfo
(Clock clock, DataStore dataStore) Constructs a OAuth2SessionInfo object. -
Uses of OAuthException in org.forgerock.oauth.clients.oidc
Modifier and TypeMethodDescriptionOpenIDConnectClient.getAuthRedirect
(DataStore dataStore, String data, URI landingPage) Promise<? extends OAuth2SessionInfo,
OAuthException> OpenIDConnectClient.getSessionInfo
(DataStore dataStore) OpenIDConnectClient.getUserInfo
(DataStore dataStore) OpenIDConnectClient.handleNativePostAuth
(Context context, DataStore dataStore, Map<String, List<String>> parameters) protected final Function<JsonValue,
UserInfo, OAuthException> OpenIDConnectClient.mapToUserInfo
(JwtClaimsSet jwtClaims) Maps a retrieved raw profile from the user info endpoint to anOpenIDConnectUserInfo
object.protected final Function<JsonValue,
JsonValue, OAuthException> OpenIDConnectClient.validateSub
(DataStore dataStore) Validates the sub Claim in the UserInfo Response is an exact match to the sub Claim in the ID Token.Modifier and TypeMethodDescriptionprotected URI
OpenIDConnectClient.createAuthRedirectUri
(String state, String pkceChallenge, String nonce, DataStore dataStore) Creates aURI
that the user agent will be redirected to for authentication and authorization.protected final UserInfo
OpenIDConnectClient.createUserInfoFromIdTokenJwtClaims
(JwtClaimsSet jwtClaims) Creates anOpenIDConnectUserInfo
object from id_token jwt Claims.protected final JwtClaimsSet
OpenIDConnectClient.getJwtClaimsSet
(DataStore dataStore) Retrieves the claims set from the data store.protected static final JsonValue
OpenIDConnectClient.jwtClaimsAsJsonValue
(JwtClaimsSet jwtClaims) Returns the jwt claims as aJsonValue
.ModifierConstructorDescriptionOpenIDConnectSessionInfo
(Clock clock, DataStore dataStore, JwtClaimsSet jwtClaimsSet) Constructs a OpenIDConnectSessionInfo object.
OAuth2Client.createAuthRedirectUri(String, String)
and specify a PKCE verifier.