Class AccessTokenContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.plugin.oidc.op.messaging.context.AccessTokenContext
- All Implemented Interfaces:
Iterable<BaseContext>
Subcontext carrying information used to produce access tokens.
- Since:
- 3.1.0
-
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 TypeMethodDescriptioncom.nimbusds.jwt.JWTgetJWT()Get the JWT in the case of a token in that form.Get the token lifetime.Get the token string in the case of an opaque token.setJWT(com.nimbusds.jwt.JWT token) Set the JWT in the case of a token in that form.setLifetime(Duration lt) Set the token lifetime.Set the token string in the case of an opaque token.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
-
lifetime
Lifetime of the token. -
opaque
Opaque token value if JWT format is not used. -
jwt
@Nullable private com.nimbusds.jwt.JWT jwtThe signed/encrypted token in the case of JWT format.
-
-
Constructor Details
-
AccessTokenContext
public AccessTokenContext()
-
-
Method Details
-
getOpaque
Get the token string in the case of an opaque token.- Returns:
- the token value
-
setOpaque
Set the token string in the case of an opaque token.- Parameters:
token- the token string- Returns:
- this context
-
getJWT
@Nullable public com.nimbusds.jwt.JWT getJWT()Get the JWT in the case of a token in that form.May be in various states prior to signing/encryption.
- Returns:
- the JWT
-
setJWT
Set the JWT in the case of a token in that form.May be in various states prior to signing/encryption.
- Parameters:
token- the JWT- Returns:
- this context
-
getLifetime
Get the token lifetime.- Returns:
- lifetime
-
setLifetime
Set the token lifetime.- Parameters:
lt- lifetime- Returns:
- this context
-