Class InitializeRegistrationMetadataPolicyContext
- 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.InitializeRegistrationMetadataPolicyContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class InitializeRegistrationMetadataPolicyContext extends net.shibboleth.idp.profile.AbstractProfileActionInitializes theOIDCClientRegistrationMetadataPolicyContextand attaches it as a subcontext for the incomingMessageContext. The context contains the merged metadata policy, containing the policy items defined in the profile configuration and initial registration access token (if involved).
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private OIDCClientRegistrationMetadataPolicyContextmetadataPolicyContextThe metadata policy context to operate on.private BiFunction<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Pair<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Boolean>>metadataPolicyMergingStrategyThe strategy used for merging profile and token based metadata policies.private Predicate<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>>metadataPolicyValidationStrategyThe strategy used for validating token and merged metadata policies.private Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>>profileMetadataPolicyLookupStrategyThe strategy used to locate the request metadata policy configured for the profile.private Function<ProfileRequestContext,OIDCClientRegistrationMetadataPolicyContext>registrationPolicyContextCreationStrategyThe strategy used to create or locate the metadata policy context.private Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>>tokenMetadataPolicyLookupStrategyThe strategy used to locate the request metadata policy encoded in the access token.
-
Constructor Summary
Constructors Constructor Description InitializeRegistrationMetadataPolicyContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetMetadataPolicyMergingStrategy(BiFunction<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Pair<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Boolean>> strategy)Set the strategy used for merging profile and token based metadata policies.voidsetMetadataPolicyValidationStrategy(Predicate<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> strategy)Set the strategy used for validating token and merged metadata policies.voidsetProfileMetadataPolicyLookupStrategy(Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> strategy)Set the strategy used to locate the request metadata policy configured for the profile.voidsetRegistrationPolicyContextCreationStrategy(Function<ProfileRequestContext,OIDCClientRegistrationMetadataPolicyContext> strategy)Set the strategy used to create or return theOIDCClientRegistrationMetadataPolicyContext.voidsetTokenMetadataPolicyLookupStrategy(Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> strategy)Set the strategy used to locate the request metadata policy encoded in the access token.-
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 final org.slf4j.Logger log
Class logger.
-
profileMetadataPolicyLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> profileMetadataPolicyLookupStrategy
The strategy used to locate the request metadata policy configured for the profile.
-
tokenMetadataPolicyLookupStrategy
@NonnullAfterInit private Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> tokenMetadataPolicyLookupStrategy
The strategy used to locate the request metadata policy encoded in the access token.
-
registrationPolicyContextCreationStrategy
@NonnullAfterInit private Function<ProfileRequestContext,OIDCClientRegistrationMetadataPolicyContext> registrationPolicyContextCreationStrategy
The strategy used to create or locate the metadata policy context.
-
metadataPolicyMergingStrategy
@NonnullAfterInit private BiFunction<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Pair<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Boolean>> metadataPolicyMergingStrategy
The strategy used for merging profile and token based metadata policies.
-
metadataPolicyValidationStrategy
@NonnullAfterInit private Predicate<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> metadataPolicyValidationStrategy
The strategy used for validating token and merged metadata policies.
-
metadataPolicyContext
private OIDCClientRegistrationMetadataPolicyContext metadataPolicyContext
The metadata policy context to operate on.
-
-
Method Detail
-
setProfileMetadataPolicyLookupStrategy
public void setProfileMetadataPolicyLookupStrategy(@Nonnull Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> strategy)Set the strategy used to locate the request metadata policy configured for the profile.- Parameters:
strategy- What to set.
-
setTokenMetadataPolicyLookupStrategy
public void setTokenMetadataPolicyLookupStrategy(@Nonnull Function<ProfileRequestContext,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> strategy)Set the strategy used to locate the request metadata policy encoded in the access token.- Parameters:
strategy- What to set.
-
setRegistrationPolicyContextCreationStrategy
public void setRegistrationPolicyContextCreationStrategy(@Nonnull Function<ProfileRequestContext,OIDCClientRegistrationMetadataPolicyContext> strategy)Set the strategy used to create or return theOIDCClientRegistrationMetadataPolicyContext.- Parameters:
strategy- What to set.
-
setMetadataPolicyMergingStrategy
public void setMetadataPolicyMergingStrategy(@Nonnull BiFunction<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Pair<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>,Boolean>> strategy)Set the strategy used for merging profile and token based metadata policies.- Parameters:
strategy- What to set.
-
setMetadataPolicyValidationStrategy
public void setMetadataPolicyValidationStrategy(@Nonnull Predicate<Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>> strategy)Set the strategy used for validating token and merged metadata policies.- Parameters:
strategy- What to set.
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-