Class AccessTokenResponseContext
- java.lang.Object
-
- org.opensaml.messaging.context.BaseContext
-
- net.shibboleth.idp.plugin.authn.oidc.rp.context.AbstractAuthenticatableOIDCContext
-
- net.shibboleth.idp.plugin.authn.oidc.rp.context.AccessTokenResponseContext
-
- All Implemented Interfaces:
Iterable<BaseContext>
public class AccessTokenResponseContext extends AbstractAuthenticatableOIDCContext
A context to hold an OIDC token request response. If authenticated, the Token was received over a TLS protected channel where TLS credential validation was performed and successful.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
-
Field Summary
Fields Modifier and Type Field Description private com.nimbusds.openid.connect.sdk.OIDCTokenResponsetokenResponseThe OAuth 2.0 and OIDC token response.private InstanttokenResponseCreatedAtThe time the token response was set onto this context.
-
Constructor Summary
Constructors Constructor Description AccessTokenResponseContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.openid.connect.sdk.OIDCTokenResponsegetTokenResponse()Get the OAuth 2.0 and OIDC Token Response.InstantgetTokenResponseCreatedAt()Get the time the token response was set onto this context.AccessTokenResponseContextsetTokenResponse(com.nimbusds.openid.connect.sdk.OIDCTokenResponse token)Set the OAuth 2.0 and OIDC Token Response.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.context.AbstractAuthenticatableOIDCContext
isAuthenticated, setAuthenticated
-
Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
tokenResponse
@Nullable private com.nimbusds.openid.connect.sdk.OIDCTokenResponse tokenResponse
The OAuth 2.0 and OIDC token response.
-
tokenResponseCreatedAt
@Nullable private Instant tokenResponseCreatedAt
The time the token response was set onto this context.
-
-
Method Detail
-
setTokenResponse
public AccessTokenResponseContext setTokenResponse(@Nullable com.nimbusds.openid.connect.sdk.OIDCTokenResponse token)
Set the OAuth 2.0 and OIDC Token Response.- Parameters:
token- the token response- Returns:
- this
-
getTokenResponse
@Nullable public com.nimbusds.openid.connect.sdk.OIDCTokenResponse getTokenResponse()
Get the OAuth 2.0 and OIDC Token Response.- Returns:
- the token response
-
getTokenResponseCreatedAt
@Nullable public Instant getTokenResponseCreatedAt()
Get the time the token response was set onto this context.- Returns:
- the time the token response was set onto this context
-
-