public class MessageLifetimeSecurityHandler extends AbstractMessageHandler
Constructor and Description |
---|
MessageLifetimeSecurityHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
long |
getClockSkew()
Get the clock skew.
|
long |
getMessageLifetime()
Gets the amount of time, in milliseconds, for which a message is valid.
|
boolean |
isRequiredRule()
Gets whether this rule is required to be met.
|
void |
setClockSkew(long skew)
Set the clock skew.
|
void |
setMessageLifetime(long lifetime)
Sets the amount of time, in milliseconds, for which a message is valid.
|
void |
setRequiredRule(boolean required)
Sets whether this rule is required to be met.
|
doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invoke
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
public MessageLifetimeSecurityHandler()
@NonNegative public long getClockSkew()
public void setClockSkew(@Duration @NonNegative long skew)
skew
- clock skew to set@NonNegative public long getMessageLifetime()
public void setMessageLifetime(@Duration @NonNegative long lifetime)
lifetime
- amount of time, in milliseconds, for which a message is validpublic boolean isRequiredRule()
public void setRequiredRule(boolean required)
required
- whether this rule is required to be metpublic void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doInvoke
in class AbstractMessageHandler
messageContext
- the message context on which to invoke the handlerMessageHandlerException
- if there is an error invoking the handler on the message contextCopyright © 2019. All rights reserved.