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
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 String
Label forMultiRelyingPartyContext
entries.private final org.slf4j.Logger
Class logger.private Function<ProfileRequestContext,
LogoutContext> Lookup function forLogoutContext
.private LogoutContext
LogoutContext
to process.private RoleDescriptorResolver
Resolver used to look up SAML metadata.private QName
Role to resolve metadata for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(ProfileRequestContext profileRequestContext) protected void
protected boolean
doPreExecute
(ProfileRequestContext profileRequestContext) void
Set the lookup strategy for the LogoutContext to process.void
Set the metadata role to lookup.void
Set theRoleDescriptorResolver
to use.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, 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, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
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 Details
-
LABEL
Label forMultiRelyingPartyContext
entries.- 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
LogoutContext
to process.
-
-
Constructor Details
-
PopulateMultiRPContextFromLogoutContext
public PopulateMultiRPContextFromLogoutContext()Constructor.
-
-
Method Details
-
setRoleDescriptorResolver
Set theRoleDescriptorResolver
to 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:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecute
in classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-