Package net.shibboleth.idp.session.impl
Class PopulateMultiRPContextFromLogoutContext
- 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.session.impl.PopulateMultiRPContextFromLogoutContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class PopulateMultiRPContextFromLogoutContext extends AbstractProfileAction
Profile action that populates aMultiRelyingPartyContextwith the relying party information from aLogoutContext, and extends eachRelyingPartyContextcreated with aSAMLMetadataContextbased on metadata lookup.Any existing
MultiRelyingPartyContextwill be replaced.- Event:
EventIds.PROCEED_EVENT_ID- Postcondition:
- If (ProfileRequestContext.getSubcontext(LogoutContext.class) != null, then ProfileRequestContext.getSubcontext(MultiRelyingPartyContext.class) != null
-
-
Field Summary
Fields Modifier and Type Field Description private static StringLABELLabel forMultiRelyingPartyContextentries.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,LogoutContext>logoutContextLookupStrategyLookup function forLogoutContext.private LogoutContextlogoutCtxLogoutContextto process.private RoleDescriptorResolvermetadataResolverResolver used to look up SAML metadata.private QNameroleRole to resolve metadata for.
-
Constructor Summary
Constructors Constructor Description PopulateMultiRPContextFromLogoutContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetLogoutContextLookupStrategy(Function<ProfileRequestContext,LogoutContext> strategy)Set the lookup strategy for the LogoutContext to process.voidsetRole(QName theRole)Set the metadata role to lookup.voidsetRoleDescriptorResolver(RoleDescriptorResolver resolver)Set theRoleDescriptorResolverto use.-
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
-
LABEL
@Nonnull @NotEmpty private static final String LABEL
Label forMultiRelyingPartyContextentries.- See Also:
- Constant Field Values
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
metadataResolver
@NonnullAfterInit private RoleDescriptorResolver metadataResolver
Resolver used to look up SAML metadata.
-
logoutContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,LogoutContext> logoutContextLookupStrategy
Lookup function forLogoutContext.
-
role
@NonnullAfterInit private QName role
Role to resolve metadata for.
-
logoutCtx
@Nullable private LogoutContext logoutCtx
LogoutContextto process.
-
-
Method Detail
-
setRoleDescriptorResolver
public void setRoleDescriptorResolver(@Nonnull RoleDescriptorResolver resolver)Set theRoleDescriptorResolverto use.- Parameters:
resolver- the resolver to use
-
setLogoutContextLookupStrategy
public void setLogoutContextLookupStrategy(@Nonnull Function<ProfileRequestContext,LogoutContext> strategy)Set the lookup strategy for the LogoutContext to process.- Parameters:
strategy- lookup strategy
-
setRole
public void setRole(@Nonnull QName theRole)Set the metadata role to lookup.Defaults to
SPSSODescriptor.DEFAULT_ELEMENT_NAME.- Parameters:
theRole- the role element or type
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-