Class OAuth2ClientContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.authn.oidc.rp.context.OAuth2ClientContext
- All Implemented Interfaces:
Iterable<BaseContext>
A context to store information pertaining to the OAuth2 client (Relying Party) to use in communication
with a OpenID Provider.
Typically a subcontext under OIDCPeerEntityContext, as it relates to the client
associated pairwise with the upstream OP peer.
- Parent:
OIDCPeerEntityContext- Added:
- During an OAuth 2.0 authentication request attempt
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the client_id.Get the redirect_uri which should be used in place of any other.setClientId(String id) Set the client_id.setRedirectUriOverride(URI override) Set the redirect_uri to use in place of any other.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
clientId
The client_id. -
redirectUriOverride
An redirect URI that should take preference over any automatically computed.
-
-
Constructor Details
-
OAuth2ClientContext
public OAuth2ClientContext()
-
-
Method Details
-
setRedirectUriOverride
Set the redirect_uri to use in place of any other.- Parameters:
override- the redirect_uri- Returns:
- this
-
getRedirectUriOverride
Get the redirect_uri which should be used in place of any other.- Returns:
- the redirect_uri
-
setClientId
Set the client_id.- Parameters:
id- the client_id- Returns:
- this
-
getClientId
Get the client_id.- Returns:
- the client_id
-