Class SetRequestedClaimsToResponseContext
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.SetRequestedClaimsToResponseContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
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
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.Strategy used to obtain the requested claims of request.Transcoder registry service object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddecodeAttribute(ProfileRequestContext profileRequestContext, Collection<TranscodingRule> rules, JSONObject input, Multimap<String, IdPAttribute> results) Access the registry of transcoding rules to decode the input object.protected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidvoidSet the strategy used to locate the requested claims of request.voidSets 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, 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, 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 final org.slf4j.Logger logClass logger. -
requestedClaimsLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,OIDCClaimsRequest> requestedClaimsLookupStrategyStrategy used to obtain the requested claims of request. -
transcoderRegistry
Transcoder registry service object.
-
-
Constructor Details
-
SetRequestedClaimsToResponseContext
public SetRequestedClaimsToResponseContext()
-
-
Method Details
-
setRequestedClaimsLookupStrategy
public void setRequestedClaimsLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCClaimsRequest> strategy) Set the strategy used to locate the requested claims of request.- Parameters:
strategy- lookup strategy
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-
decodeAttribute
private void decodeAttribute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull @NonnullElements Collection<TranscodingRule> rules, @Nonnull JSONObject input, @Nonnull @NonnullElements @Live Multimap<String, 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