public class MessageLifetimeSecurityHandler
extends org.opensaml.messaging.handler.AbstractMessageHandler
Modifier and Type | Field and Description |
---|---|
private long |
clockSkew
Clock skew - milliseconds before a lower time bound, or after an upper time bound, to consider still
acceptable Default value: 3 minutes.
|
private Logger |
log
Class logger.
|
private long |
messageLifetime
Amount of time in milliseconds for which a message is valid after it is issued.
|
private boolean |
requiredRule
Whether this rule is required to be met.
|
Constructor and Description |
---|
MessageLifetimeSecurityHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
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
@Duration @NonNegative private long clockSkew
@Duration @NonNegative private long messageLifetime
private boolean requiredRule
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 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–2015 JBoss by Red Hat. All rights reserved.