public class InitializeRelyingPartyContextFromSAMLPeer extends AbstractMessageHandler
RelyingPartyContext to the current InOutOperationContext tree
via a creation function. The context is populated via a lookup strategy to locate a SAMLPeerEntityContext,
by default as a direct child of the parent InOutOperationContext.| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private com.google.common.base.Function<MessageContext,SAMLPeerEntityContext> |
peerEntityContextLookupStrategy
Strategy used to look up the
SAMLPeerEntityContext to draw from. |
private SAMLPeerEntityContext |
peerEntityCtx
SAML peer entity context to populate from.
|
private com.google.common.base.Function<MessageContext,RelyingPartyContext> |
relyingPartyContextCreationStrategy
Strategy that will return or create a
RelyingPartyContext. |
private static com.google.common.base.Function<RelyingPartyContext,String> |
RPID_LOOKUP
The relying party ID lookup function to inject.
|
private static com.google.common.base.Function<RelyingPartyContext,Boolean> |
VERIFY_LOOKUP
The verification lookup function to inject.
|
| Constructor and Description |
|---|
InitializeRelyingPartyContextFromSAMLPeer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(MessageContext messageContext) |
protected boolean |
doPreInvoke(MessageContext messageContext) |
void |
setPeerEntityContextLookupStrategy(com.google.common.base.Function<MessageContext,SAMLPeerEntityContext> strategy)
Set the strategy used to look up the
SAMLPeerEntityContext to draw from. |
void |
setRelyingPartyContextCreationStrategy(com.google.common.base.Function<MessageContext,RelyingPartyContext> strategy)
Set the strategy used to return or create the
RelyingPartyContext. |
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private static final com.google.common.base.Function<RelyingPartyContext,String> RPID_LOOKUP
@Nonnull private static final com.google.common.base.Function<RelyingPartyContext,Boolean> VERIFY_LOOKUP
@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<MessageContext,RelyingPartyContext> relyingPartyContextCreationStrategy
RelyingPartyContext.@Nonnull private com.google.common.base.Function<MessageContext,SAMLPeerEntityContext> peerEntityContextLookupStrategy
SAMLPeerEntityContext to draw from.@Nullable private SAMLPeerEntityContext peerEntityCtx
public InitializeRelyingPartyContextFromSAMLPeer()
public void setRelyingPartyContextCreationStrategy(@Nonnull com.google.common.base.Function<MessageContext,RelyingPartyContext> strategy)
RelyingPartyContext.strategy - creation strategypublic void setPeerEntityContextLookupStrategy(@Nonnull com.google.common.base.Function<MessageContext,SAMLPeerEntityContext> strategy)
SAMLPeerEntityContext to draw from.strategy - strategy used to look up the SAMLPeerEntityContextprotected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doPreInvoke in class AbstractMessageHandlerMessageHandlerExceptionprotected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doInvoke in class AbstractMessageHandlerMessageHandlerExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.