public class AddTimestampHandler extends AbstractHeaderGeneratingMessageHandler
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> |
createdLookup
Context lookup function for the Created time.
|
private DateTime |
createdValue
The effective Created value to use.
|
private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> |
expiresLookup
Context lookup function for the Expires time.
|
private Long |
expiresOffsetFromCreated
Parameter indicating the offset from Created, in milliseconds, used to calculate the Expires time,
if no Expires value is explicitly supplied via the other supported mechanisms.
|
private DateTime |
expiresValue
The effective Expires value to use.
|
private Logger |
log
Logger.
|
private boolean |
useCurrentTimeAsDefaultCreated
Flag indicating whether to use the current time as the Created time, if no value
is explicitly supplied by the other supported mechanisms.
|
| Constructor and Description |
|---|
AddTimestampHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> |
getCreatedLookup()
Get the context lookup function for the Created time.
|
protected DateTime |
getCreatedValue(org.opensaml.messaging.context.MessageContext messageContext)
Get the Created value.
|
org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> |
getExpiresLookup()
Get the context lookup function for the Expires time.
|
Long |
getExpiresOffsetFromCreated()
Get the parameter indicating the offset from Created, in milliseconds, used to calculate the Expires time,
if no Expires value is explicitly supplied via the other supported mechanisms.
|
protected DateTime |
getExpiresValue(org.opensaml.messaging.context.MessageContext messageContext,
DateTime created)
Get the Expires value.
|
boolean |
isUseCurrentTimeAsDefaultCreated()
Get the flag indicating whether to use the current time as the Created time, if no value
is explicitly supplied by the other supported mechanisms.
|
void |
setCreatedLookup(org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> lookup)
Set the context lookup function for the Created time.
|
void |
setExpiresLookup(org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> lookup)
Set the context lookup function for the Expires time.
|
void |
setExpiresOffsetFromCreated(Long value)
Set the parameter indicating the offset from Created, in milliseconds, used to calculate the Expires time,
if no Expires value is explicitly supplied via the other supported mechanisms.
|
void |
setUseCurrentTimeAsDefaultCreated(boolean flag)
Set the flag indicating whether to use the current time as the Created time, if no value
is explicitly supplied by the other supported mechanisms.
|
decorateGeneratedHeader, getEffectiveTargetNode, isEffectiveMustUnderstand, setMustUnderstand, setMustUnderstandStrategy, setTargetNode, setTargetNodeStrategydoPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationConditiondestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedprivate Logger log
private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> createdLookup
private org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> expiresLookup
private boolean useCurrentTimeAsDefaultCreated
private Long expiresOffsetFromCreated
private DateTime createdValue
private DateTime expiresValue
@Nullable public org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> getCreatedLookup()
public void setCreatedLookup(@Nullable org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> lookup)
lookup - the lookup function@Nullable public org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> getExpiresLookup()
public void setExpiresLookup(@Nullable org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.messaging.context.MessageContext,DateTime> lookup)
lookup - the lookup functionpublic boolean isUseCurrentTimeAsDefaultCreated()
public void setUseCurrentTimeAsDefaultCreated(boolean flag)
flag - true if should use currnet time, false if not@Nullable public Long getExpiresOffsetFromCreated()
public void setExpiresOffsetFromCreated(@Nullable Long value)
value - the expires off set, or nullprotected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doPreInvoke in class AbstractHeaderGeneratingMessageHandlerorg.opensaml.messaging.handler.MessageHandlerExceptionprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke in class org.opensaml.messaging.handler.AbstractMessageHandlerorg.opensaml.messaging.handler.MessageHandlerException@Nullable protected DateTime getCreatedValue(@Nonnull org.opensaml.messaging.context.MessageContext messageContext)
messageContext - the current message context@Nullable protected DateTime getExpiresValue(@Nonnull org.opensaml.messaging.context.MessageContext messageContext, @Nullable DateTime created)
messageContext - the current message contextcreated - the created value, if anyCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.