@Prototype public class PopulateLibertyContext extends AbstractProfileAction
Assertion WS-Security token,
and populate the LibertySSOSContext.
The default token strategy is to resolve the first instance of SAML20AssertionToken
present in the inbound WSSecurityContext which has a validation status of
Token.ValidationStatus.VALID
AuthnEventIds.NO_CREDENTIALSassertionTokenStrategy.apply() != null
profileRequestContext.getSubcontext(LibertySSOSContext.class) != null,
LibertySSOSContext.getAttestedToken() != null,
LibertySSOSContext.getAttestedSubjectConfirmationMethod != null
| Modifier and Type | Class and Description |
|---|---|
class |
PopulateLibertyContext.TokenStrategy
Default strategy for resolving the assertion token to process.
|
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.wssecurity.SAML20AssertionToken |
assertionToken
The SAML 2 Assertion token being processed.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.wssecurity.SAML20AssertionToken> |
assertionTokenStrategy
Function used to resolve the assertion token to process.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,LibertySSOSContext> |
libertyContextLookupStrategy
Function used to resolve the Liberty context to populate.
|
private org.slf4j.Logger |
log
Logger.
|
private LibertySSOSContext |
ssosContext
Liberty context to populate.
|
| Constructor and Description |
|---|
PopulateLibertyContext()
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 |
setAssertionTokenStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.wssecurity.SAML20AssertionToken> strategy)
Set the strategy used to locate the requester ID for canonicalization.
|
void |
setLibertyContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,LibertySSOSContext> strategy)
Set the strategy used to locate the
LibertySSOSContext to populate. |
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, isInitializedprivate org.slf4j.Logger log
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.wssecurity.SAML20AssertionToken> assertionTokenStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,LibertySSOSContext> libertyContextLookupStrategy
private org.opensaml.saml.saml2.wssecurity.SAML20AssertionToken assertionToken
private LibertySSOSContext ssosContext
public void setLibertyContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,LibertySSOSContext> strategy)
LibertySSOSContext to populate.strategy - lookup strategypublic void setAssertionTokenStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.saml.saml2.wssecurity.SAML20AssertionToken> strategy)
strategy - lookup strategyprotected 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.