public class MessageReplaySecurityHandler extends AbstractMessageHandler
| Modifier and Type | Field and Description |
|---|---|
private long |
expires
Time in milliseconds to expire cache entries.
|
private org.slf4j.Logger |
log
Logger.
|
private ReplayCache |
replayCache
Message replay cache instance to use.
|
private boolean |
requiredRule
Whether this rule is required to be met.
|
| Constructor and Description |
|---|
MessageReplaySecurityHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
protected void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
long |
getExpires()
Gets the lifetime in milliseconds of replay entries.
|
ReplayCache |
getReplayCache()
Get the replay cache instance to use.
|
void |
setExpires(long exp)
Sets the lifetime in seconds of replay entries.
|
void |
setReplayCache(ReplayCache cache)
Set the replay cache instance to use.
|
void |
setRequiredRule(boolean flag)
Set whether this rule is required to be met.
|
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private ReplayCache replayCache
private boolean requiredRule
@Duration @NonNegative private long expires
@NonnullAfterInit public ReplayCache getReplayCache()
public void setReplayCache(@Nonnull
ReplayCache cache)
cache - The replayCache to set.public void setRequiredRule(boolean flag)
flag - flag to set@NonNegative public long getExpires()
public void setExpires(@Duration @NonNegative
long exp)
exp - lifetime in seconds of entriesprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected void doInvoke(@Nonnull
MessageContext messageContext)
throws MessageHandlerException
doInvoke in class AbstractMessageHandlermessageContext - the message context on which to invoke the handlerMessageHandlerException - if there is an error invoking the handler on the message context