Package net.shibboleth.sp.profile.impl
Class WriteAuditLog
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Subclass of IdP auditing action that overrides the
HttpServletRequest accessor
to bypass the "non-null" assumptions built into our profile action classes.
This is an "alternative" means of getting the remoted request into the execution code
and is necessary when the object may be absent.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,EventContext> Strategy function for access toEventContextto check. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetEvent(ProfileRequestContext profileRequestContext) This is a "new" method intended to override something that the base class in 5.2 doesn't call but the base class in 5.3 will.voidSet lookup strategy forEventContextto check.Methods inherited from class net.shibboleth.idp.profile.audit.impl.WriteAuditLog
doExecute, doExecute, doInitialize, doPreExecute, filter, getFormattingMap, setAuditContextLookupStrategy, setCategoriesToLog, setDateTimeFormat, setFormattingMap, setIncludeProfileLoggingId, setUseDefaultTimeZoneMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
eventContextLookupStrategy
Strategy function for access toEventContextto check.
-
-
Constructor Details
-
WriteAuditLog
public WriteAuditLog()Constructor.
-
-
Method Details
-
setEventContextLookupStrategy
public void setEventContextLookupStrategy(@Nonnull Function<ProfileRequestContext, EventContext> strategy) Set lookup strategy forEventContextto check.- Parameters:
strategy- lookup strategy
-
getHttpServletRequest
- Overrides:
getHttpServletRequestin classAbstractProfileAction
-
getEvent
This is a "new" method intended to override something that the base class in 5.2 doesn't call but the base class in 5.3 will.- Parameters:
profileRequestContext- profile request context- Returns:
- event to log
-