public abstract class BaseAddAuthenticationStatementToAssertion extends AbstractAuthenticationAction
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, EventIds.INVALID_MSG_CTX, AuthnEventIds.INVALID_AUTHN_CTX| Modifier and Type | Field and Description |
|---|---|
private AuthenticationResult |
authenticationResult
AuthenticationResult basis of statement.
|
private IdentifierGenerationStrategy |
idGenerator
The generator to use.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> |
idGeneratorLookupStrategy
Strategy used to locate the
IdentifierGenerationStrategy to use. |
private String |
issuerId
EntityID to populate as assertion issuer.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,String> |
issuerLookupStrategy
Strategy used to obtain the assertion issuer value.
|
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
statementInOwnAssertion
Whether the generated authentication statement should be placed in its own assertion or added to one if it
exists.
|
| Constructor and Description |
|---|
BaseAddAuthenticationStatementToAssertion()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
AuthenticationResult |
getAuthenticationResult()
Get the
AuthenticationResult to encode. |
IdentifierGenerationStrategy |
getIdGenerator()
Get the
IdentifierGenerationStrategy to use if an assertion must be created. |
String |
getIssuerId()
Get the issuer name to use if an assertion must be created.
|
boolean |
isStatementInOwnAssertion()
Set whether the generated statement should be placed in its own assertion or added to one if it exists.
|
void |
setIdentifierGeneratorLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> strategy)
Set the strategy used to locate the
IdentifierGenerationStrategy to use. |
void |
setIssuerLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
Set the strategy used to locate the issuer value to use.
|
void |
setStatementInOwnAssertion(boolean inOwnAssertion)
Set whether the generated authentication statement should be placed in its own assertion or added to one if it
exists.
|
doExecute, doExecute, doPreExecute, setLookupStrategydoExecute, 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 final org.slf4j.Logger log
private boolean statementInOwnAssertion
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategy
IdentifierGenerationStrategy to use.@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,String> issuerLookupStrategy
@Nullable private AuthenticationResult authenticationResult
@Nullable private IdentifierGenerationStrategy idGenerator
public BaseAddAuthenticationStatementToAssertion()
public boolean isStatementInOwnAssertion()
public void setStatementInOwnAssertion(boolean inOwnAssertion)
inOwnAssertion - whether the generated authentication statement should be placed in its own assertion or
added to one if it existspublic void setIdentifierGeneratorLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,IdentifierGenerationStrategy> strategy)
IdentifierGenerationStrategy to use.strategy - lookup strategypublic void setIssuerLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,String> strategy)
strategy - lookup strategy@Nonnull public AuthenticationResult getAuthenticationResult()
AuthenticationResult to encode.@Nonnull public IdentifierGenerationStrategy getIdGenerator()
IdentifierGenerationStrategy to use if an assertion must be created.@Nonnull public String getIssuerId()
protected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.