Class AccessTokenContext
- java.lang.Object
-
- org.opensaml.messaging.context.BaseContext
-
- net.shibboleth.idp.plugin.oidc.op.messaging.context.AccessTokenContext
-
- All Implemented Interfaces:
Iterable<BaseContext>
public final class AccessTokenContext extends 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
-
-
Constructor Summary
Constructors Constructor Description AccessTokenContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jwt.JWTgetJWT()Get the JWT in the case of a token in that form.DurationgetLifetime()Get the token lifetime.StringgetOpaque()Get the token string in the case of an opaque token.AccessTokenContextsetJWT(com.nimbusds.jwt.JWT token)Set the JWT in the case of a token in that form.AccessTokenContextsetLifetime(Duration lt)Set the token lifetime.AccessTokenContextsetOpaque(String token)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, 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
-
-
-
-
Method Detail
-
getOpaque
@Nullable @NotEmpty public String getOpaque()
Get the token string in the case of an opaque token.- Returns:
- the token value
-
setOpaque
@Nonnull public AccessTokenContext setOpaque(@Nullable @NotEmpty String token)
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
@Nonnull public AccessTokenContext setJWT(@Nullable com.nimbusds.jwt.JWT token)
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
@Nullable public Duration getLifetime()
Get the token lifetime.- Returns:
- lifetime
-
setLifetime
@Nonnull public AccessTokenContext setLifetime(@Nullable Duration lt)
Set the token lifetime.- Parameters:
lt- lifetime- Returns:
- this context
-
-