public class MessageReplaySecurityHandler
extends org.opensaml.messaging.handler.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(org.opensaml.messaging.context.MessageContext messageContext) |
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, getActivationCondition, getLogPrefix, invoke, setActivationCondition
destroy, 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@Duration @NonNegative public long getExpires()
@Duration 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.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.