public class InitializeRelyingPartyContextFromSAMLPeer extends AbstractProfileAction
RelyingPartyContext to the current ProfileRequestContext tree
via a creation function. The context is populated via a lookup strategy to locate a SAMLPeerEntityContext,
by default via InOutOperationContext.getInboundMessageContext().EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, IdPEventIds.INVALID_RELYING_PARTY_CTX| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext> |
peerEntityContextLookupStrategy
Strategy used to look up the
SAMLPeerEntityContext to draw from. |
private org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext |
peerEntityCtx
SAML peer entity context to populate from.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextCreationStrategy
Strategy that will return or create a
RelyingPartyContext. |
private static Function<RelyingPartyContext,String> |
RPID_LOOKUP
The relying party ID lookup function to inject.
|
private static Function<RelyingPartyContext,Boolean> |
VERIFY_LOOKUP
The verification lookup function to inject.
|
| Constructor and Description |
|---|
InitializeRelyingPartyContextFromSAMLPeer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setPeerEntityContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext> strategy)
Set the strategy used to look up the
SAMLPeerEntityContext to draw from. |
void |
setRelyingPartyContextCreationStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
Set the strategy used to return or create the
RelyingPartyContext. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private static final Function<RelyingPartyContext,String> RPID_LOOKUP
@Nonnull private static final Function<RelyingPartyContext,Boolean> VERIFY_LOOKUP
@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> relyingPartyContextCreationStrategy
RelyingPartyContext.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext> peerEntityContextLookupStrategy
SAMLPeerEntityContext to draw from.@Nullable private org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext peerEntityCtx
public InitializeRelyingPartyContextFromSAMLPeer()
public void setRelyingPartyContextCreationStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext.strategy - creation strategypublic void setPeerEntityContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext> strategy)
SAMLPeerEntityContext to draw from.strategy - strategy used to look up the SAMLPeerEntityContextprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.