Class AddTokenDeliveryAttributesToClaimsSet
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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
public class AddTokenDeliveryAttributesToClaimsSet extends AbstractOIDCResponseAction
Action that adds claims to aClaimsSet. Claims are added fromOIDCAuthenticationResponseTokenClaimsContext. The main use cases are adding token delivery attributes to id token in token endpoint response or to user info response.
-
-
Field Summary
Fields Modifier and Type Field Description private com.nimbusds.openid.connect.sdk.claims.ClaimsSetclaimsSetClaims Set to use.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.claims.ClaimsSet>responseClaimsSetLookupStrategyStrategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext.private booleantargetIDTokenWhether we are adding claims to ID Token.private Function<ProfileRequestContext,OIDCAuthenticationResponseTokenClaimsContext>tokenClaimsContextLookupStrategyStrategy used to locate theOIDCAuthenticationResponseTokenClaimsContext.private OIDCAuthenticationResponseTokenClaimsContexttokenClaimsCtxdelivery claims to copy to claims set.
-
Constructor Summary
Constructors Constructor Description AddTokenDeliveryAttributesToClaimsSet()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, getOidcResponseContext
-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
responseClaimsSetLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.claims.ClaimsSet> responseClaimsSetLookupStrategy
Strategy used to locate the responseClaimsSetassociated with a givenProfileRequestContext.
-
tokenClaimsContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationResponseTokenClaimsContext> tokenClaimsContextLookupStrategy
Strategy used to locate theOIDCAuthenticationResponseTokenClaimsContext.
-
claimsSet
@Nullable private com.nimbusds.openid.connect.sdk.claims.ClaimsSet claimsSet
Claims Set to use.
-
targetIDToken
@Nonnull private boolean targetIDToken
Whether we are adding claims to ID Token.
-
tokenClaimsCtx
@Nullable private OIDCAuthenticationResponseTokenClaimsContext tokenClaimsCtx
delivery claims to copy to claims set.
-
-
Method Detail
-
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
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractOIDCResponseAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-