Package net.shibboleth.idp.session.impl
Class PopulateMultiRPContextFromLogoutContext
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.session.impl.PopulateMultiRPContextFromLogoutContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Profile action that populates a
MultiRelyingPartyContext with the relying party
information from a LogoutContext, and extends each RelyingPartyContext
created with a SAMLMetadataContext based on metadata lookup.
Any existing MultiRelyingPartyContext will be replaced.
- Event:
EventIds.PROCEED_EVENT_ID- Postcondition:
- If (ProfileRequestContext.getSubcontext(LogoutContext.class) != null, then ProfileRequestContext.getSubcontext(MultiRelyingPartyContext.class) != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringLabel forMultiRelyingPartyContextentries.private final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,LogoutContext> Lookup function forLogoutContext.private LogoutContextLogoutContextto process.private RoleDescriptorResolverResolver used to look up SAML metadata.private QNameRole to resolve metadata for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the lookup strategy for the LogoutContext to process.voidSet the metadata role to lookup.voidSet theRoleDescriptorResolverto use.Methods 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
-
LABEL
Label forMultiRelyingPartyContextentries.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
metadataResolver
Resolver used to look up SAML metadata. -
logoutContextLookupStrategy
Lookup function forLogoutContext. -
role
Role to resolve metadata for. -
logoutCtx
LogoutContextto process.
-
-
Constructor Details
-
PopulateMultiRPContextFromLogoutContext
public PopulateMultiRPContextFromLogoutContext()Constructor.
-
-
Method Details
-
setRoleDescriptorResolver
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
Set the metadata role to lookup.Defaults to
SPSSODescriptor.DEFAULT_ELEMENT_NAME.- Parameters:
theRole- the role element or type
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-