Class AddTokenDeliveryAttributesToClaimsSet
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCResponseAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AddTokenDeliveryAttributesToClaimsSet
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that adds claims to a
ClaimsSet. Claims are added from
OIDCAuthenticationResponseTokenClaimsContext. The main use cases are adding token delivery attributes to id
token in token endpoint response or to user info response.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.nimbusds.openid.connect.sdk.claims.ClaimsSetClaims Set to use.private org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.claims.ClaimsSet> Strategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext.private booleanWhether we are adding claims to ID Token.Strategy used to locate theOIDCAuthenticationResponseTokenClaimsContext.delivery claims to copy to claims set. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidsetOIDCAuthenticationResponseTokenClaimsContextLookupStrategy(Function<ProfileRequestContext, OIDCAuthenticationResponseTokenClaimsContext> strategy) Set the strategy used to locate theOIDCAuthenticationResponseTokenClaimsContextassociated with a givenProfileRequestContext.voidsetResponseClaimsSetLookupStrategy(Function<ProfileRequestContext, com.nimbusds.openid.connect.sdk.claims.ClaimsSet> strategy) Set the strategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext.voidsetTargetIDToken(boolean flag) Set whether target is id token claims set.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCResponseAction
getMetadataContext, getOidcResponseContextMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
responseClaimsSetLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.claims.ClaimsSet> responseClaimsSetLookupStrategyStrategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext. -
tokenClaimsContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationResponseTokenClaimsContext> tokenClaimsContextLookupStrategyStrategy used to locate theOIDCAuthenticationResponseTokenClaimsContext. -
claimsSet
@Nullable private com.nimbusds.openid.connect.sdk.claims.ClaimsSet claimsSetClaims Set to use. -
targetIDToken
private boolean targetIDTokenWhether we are adding claims to ID Token. -
tokenClaimsCtx
delivery claims to copy to claims set.
-
-
Constructor Details
-
AddTokenDeliveryAttributesToClaimsSet
AddTokenDeliveryAttributesToClaimsSet()Constructor.
-
-
Method Details
-
setTargetIDToken
public void setTargetIDToken(boolean flag) Set whether target is id token claims set.- Parameters:
flag- whether target is id token claims set
-
setResponseClaimsSetLookupStrategy
public void setResponseClaimsSetLookupStrategy(@Nonnull Function<ProfileRequestContext, com.nimbusds.openid.connect.sdk.claims.ClaimsSet> strategy) Set the strategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext
-
setOIDCAuthenticationResponseTokenClaimsContextLookupStrategy
public void setOIDCAuthenticationResponseTokenClaimsContextLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCAuthenticationResponseTokenClaimsContext> strategy) Set the strategy used to locate theOIDCAuthenticationResponseTokenClaimsContextassociated with a givenProfileRequestContext.- Parameters:
strategy- lookup strategy
-
doPreExecute
- Overrides:
doPreExecutein classAbstractOIDCResponseAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-