Package net.shibboleth.sp.profile.impl
Class SelectRelyingPartyConfiguration
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.sp.profile.AbstractAgentRequestAction
net.shibboleth.sp.profile.AbstractAgentAction
net.shibboleth.sp.profile.AbstractApplicationAction
net.shibboleth.sp.profile.impl.SelectRelyingPartyConfiguration
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
This action attempts to resolve a
RelyingPartyConfiguration and adds it to a RelyingPartyContext,
using the requesting Application as the source of configurations rather than the generic resolver used
by the IdP.
A flag exists for the use of the SAML ECP profile such that the absence of a relying party ID is handled specially as a "verified" request so that the default configuration is resolved instead of the unverified configuration. SAML ECP is the only such scenario.
- Event:
EventIds.PROCEED_EVENT_ID,IdPEventIds.INVALID_RELYING_PARTY_CTX,IdPEventIds.INVALID_RELYING_PARTY_CONFIG- Postcondition:
- If a
RelyingPartyContextis located, it will be populated with a non-null result of applying the applicaton'sRelyingPartyConfigurationResolverto theProfileRequestContext.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.private RelyingPartyContextTheRelyingPartyContextto manipulate.private booleanFlag alllowing anonymous context to be resolved as verified. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(ProfileRequestContext profileRequestContext) booleandoPreExecute(ProfileRequestContext profileRequestContext) private RelyingPartyContextNull safe getter.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.voidsetTreatAnonymousAsVerified(boolean flag) Sets whether the lack of a relying party ID in the context is handled specially as a "verified" configuration resolution rather than unverified as would typically occur.Methods inherited from class net.shibboleth.sp.profile.AbstractApplicationAction
ensureApplication, getApplicationMethods inherited from class net.shibboleth.sp.profile.AbstractAgentAction
ensureAgent, getAgentMethods inherited from class net.shibboleth.sp.profile.AbstractAgentRequestAction
ensureAgentRequestContext, getAgentRequestContext, setAgentRequestContextLookupStrategyMethods 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, doInitialize, 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. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
treatAnonymousAsVerified
private boolean treatAnonymousAsVerifiedFlag alllowing anonymous context to be resolved as verified. -
relyingPartyCtx
TheRelyingPartyContextto manipulate.
-
-
Constructor Details
-
SelectRelyingPartyConfiguration
public SelectRelyingPartyConfiguration()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
setTreatAnonymousAsVerified
public void setTreatAnonymousAsVerified(boolean flag) Sets whether the lack of a relying party ID in the context is handled specially as a "verified" configuration resolution rather than unverified as would typically occur.Defaults to false.
- Parameters:
flag- flag to set
-
getRelyingPartyCtx
Null safe getter.- Returns:
- Returns the relyingPartyCtx.
-
doPreExecute
- Overrides:
doPreExecutein classAbstractApplicationAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-