Class SetRequestedClaimsToResponseContext
- 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.SetRequestedClaimsToResponseContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class SetRequestedClaimsToResponseContext extends AbstractOIDCResponseAction
Action that sets requested claims to response context. For instance attribute filtering may use this information.This also executes a reverse mapping of the requested claims to map them back into RequestedIdPAttributes so the filtering mechanism is freed from that role.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest>requestedClaimsLookupStrategyStrategy used to obtain the requested claims of request.private ReloadableService<net.shibboleth.idp.attribute.transcoding.AttributeTranscoderRegistry>transcoderRegistryTranscoder registry service object.
-
Constructor Summary
Constructors Constructor Description SetRequestedClaimsToResponseContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddecodeAttribute(ProfileRequestContext profileRequestContext, Collection<net.shibboleth.idp.attribute.transcoding.TranscodingRule> rules, net.minidev.json.JSONObject input, Multimap<String,net.shibboleth.idp.attribute.IdPAttribute> results)Access the registry of transcoding rules to decode the input object.protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()voidsetRequestedClaimsLookupStrategy(Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> strategy)Set the strategy used to locate the requested claims of request.voidsetTranscoderRegistry(ReloadableService<net.shibboleth.idp.attribute.transcoding.AttributeTranscoderRegistry> registry)Sets the registry of transcoding rules to apply to encode attributes.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCResponseAction
doPreExecute, 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, 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 final org.slf4j.Logger log
Class logger.
-
requestedClaimsLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> requestedClaimsLookupStrategy
Strategy used to obtain the requested claims of request.
-
transcoderRegistry
@NonnullAfterInit private ReloadableService<net.shibboleth.idp.attribute.transcoding.AttributeTranscoderRegistry> transcoderRegistry
Transcoder registry service object.
-
-
Method Detail
-
setTranscoderRegistry
public void setTranscoderRegistry(@Nonnull ReloadableService<net.shibboleth.idp.attribute.transcoding.AttributeTranscoderRegistry> registry)Sets the registry of transcoding rules to apply to encode attributes.- Parameters:
registry- registry service interface
-
setRequestedClaimsLookupStrategy
public void setRequestedClaimsLookupStrategy(@Nonnull Function<ProfileRequestContext,com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> strategy)Set the strategy used to locate the requested claims of request.- Parameters:
strategy- lookup strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
decodeAttribute
private void decodeAttribute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull @NonnullElements Collection<net.shibboleth.idp.attribute.transcoding.TranscodingRule> rules, @Nonnull net.minidev.json.JSONObject input, @Nonnull @NonnullElements @Live Multimap<String,net.shibboleth.idp.attribute.IdPAttribute> results)Access the registry of transcoding rules to decode the input object.- Parameters:
profileRequestContext- profile request contextrules- transcoding rulesinput- input objectresults- collection to add results to
-
-