Class WriteFTICKSLog
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class WriteFTICKSLog extends AbstractProfileAction
Action that produces F-TICKS log entries for successful SAML SSO responses.- Event:
EventIds.PROCEED_EVENT_ID
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,AuditContext>auditContextLookupStrategyStrategy used to locate theAuditContextassociated with a givenProfileRequestContext.private Function<ProfileRequestContext,String>authenticationMethodLookupStrategyLookup strategy for authentication method.private StringdigestAlgorithmDigest algorithm for username hashing.private StringDigesterdigesterUsername hasher.private StringfederationIdFederation ID for log.static StringFTICKS_LOG_CATEGORYLogging category to use.private Function<ProfileRequestContext,String>relyingPartyLookupStrategyLookup strategy for relying party ID.private Function<ProfileRequestContext,String>responderLookupStrategyLookup strategy for responder ID.private StringsaltSalt for username hashing.private Function<ProfileRequestContext,String>statusCodeLookupStrategyLookup strategy for StatusCode.private Function<ProfileRequestContext,String>usernameLookupStrategyLookup strategy for username.
-
Constructor Summary
Constructors Constructor Description WriteFTICKSLog()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()voidsetAuthenticationMethodLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the authentication method.voidsetDigestAlgorithm(String alg)Set the digest algorithm for username hashing.voidsetFederationId(String id)Set the federation identifier for the log.voidsetRelyingPartyLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the relying party ID.voidsetResponderLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the responder ID.voidsetSalt(String s)Set the salt for username hashing.voidsetStatusCodeLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the status code.voidsetUsernameLookupStrategy(Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the username.-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
FTICKS_LOG_CATEGORY
@Nonnull @NotEmpty public static final String FTICKS_LOG_CATEGORY
Logging category to use.- See Also:
- Constant Field Values
-
auditContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,AuditContext> auditContextLookupStrategy
Strategy used to locate theAuditContextassociated with a givenProfileRequestContext.
-
federationId
@NonnullAfterInit @NotEmpty private String federationId
Federation ID for log.
-
digestAlgorithm
@Nonnull @NotEmpty private String digestAlgorithm
Digest algorithm for username hashing.
-
salt
@Nullable private String salt
Salt for username hashing.
-
relyingPartyLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> relyingPartyLookupStrategy
Lookup strategy for relying party ID.
-
responderLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> responderLookupStrategy
Lookup strategy for responder ID.
-
usernameLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> usernameLookupStrategy
Lookup strategy for username.
-
authenticationMethodLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> authenticationMethodLookupStrategy
Lookup strategy for authentication method.
-
statusCodeLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> statusCodeLookupStrategy
Lookup strategy for StatusCode.
-
digester
@NonnullAfterInit private StringDigester digester
Username hasher.
-
-
Method Detail
-
setFederationId
public void setFederationId(@Nonnull @NotEmpty String id)
Set the federation identifier for the log.- Parameters:
id- federation identifier
-
setDigestAlgorithm
public void setDigestAlgorithm(@Nonnull @NotEmpty String alg)
Set the digest algorithm for username hashing.- Parameters:
alg- digest algorithm
-
setSalt
public void setSalt(@Nullable String s)Set the salt for username hashing.- Parameters:
s- salt
-
setRelyingPartyLookupStrategy
public void setRelyingPartyLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the relying party ID.- Parameters:
strategy- lookup strategy
-
setResponderLookupStrategy
public void setResponderLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the responder ID.- Parameters:
strategy- lookup strategy
-
setUsernameLookupStrategy
public void setUsernameLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the username.- Parameters:
strategy- lookup strategy
-
setAuthenticationMethodLookupStrategy
public void setAuthenticationMethodLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the authentication method.- Parameters:
strategy- lookup strategy
-
setStatusCodeLookupStrategy
public void setStatusCodeLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set the strategy used to locate the status code.- Parameters:
strategy- lookup strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-