|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.wss.impl.policy.MLSPolicy
com.sun.xml.wss.impl.policy.mls.WSSPolicy
com.sun.xml.wss.impl.policy.mls.TimestampPolicy
public class TimestampPolicy
A policy representing a WSS Timestamp element. Note: The TimestampPolicy is the only WSSPolicy element that does not contain a concrete FeatureBinding and/or KeyBinding.
Constructor Summary | |
---|---|
TimestampPolicy()
Default constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone operator |
boolean |
equals(WSSPolicy policy)
equals operator |
boolean |
equalsIgnoreTargets(WSSPolicy policy)
|
java.lang.String |
getCreationTime()
|
java.lang.String |
getExpirationTime()
|
long |
getMaxClockSkew()
|
long |
getTimeout()
|
long |
getTimestampFreshness()
|
java.lang.String |
getType()
Get the type of the policy. |
void |
setCreationTime(java.lang.String creationTime)
set the CreationTime for the timestamp in this TimestampPolicy |
void |
setExpirationTime(java.lang.String expirationTime)
|
void |
setMaxClockSkew(long maxClockSkew)
set the maximum clock skew adjustment value (in milliseconds) |
void |
setTimeout(long timeout)
If the current time on a receiving system is past the CreationTime of the timestamp plus the timeout, then the timestamp is to be considered expired. |
void |
setTimestampFreshness(long timestampFreshness)
set the Timestamp Freshness Limit (in milliseconds) for this Timestamp Timestamps received by a receiver with creation Times older than the Timestamp Freshness Limit period are supposed to be rejected by the receiver. |
Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
---|
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUID |
Methods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
---|
isReadOnly, isReadOnly |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimestampPolicy()
Method Detail |
---|
public void setCreationTime(java.lang.String creationTime)
creationTime
- public void setTimeout(long timeout)
timeout
- the number of milliseconds after which the Timestamp in this
TimestampPolicy will expire.public void setMaxClockSkew(long maxClockSkew)
maxClockSkew
- the Maximum Clock Skew adjustment to be used
when validating received timestampspublic void setTimestampFreshness(long timestampFreshness)
timestampFreshness
- the Timestamp Freshness Limit (in milliseconds)public java.lang.String getCreationTime()
public long getTimeout()
public java.lang.String getExpirationTime() throws java.lang.Exception
java.lang.Exception
public void setExpirationTime(java.lang.String expirationTime)
expirationTime
- the expiration timepublic long getMaxClockSkew()
public long getTimestampFreshness()
public boolean equals(WSSPolicy policy)
WSSPolicy
equals
in class WSSPolicy
policy
- the policy to be compared for equality
SignaturePolicy
,
EncryptionPolicy
,
AuthenticationTokenPolicy
,
PrivateKeyBinding
,
SymmetricKeyBinding
public boolean equalsIgnoreTargets(WSSPolicy policy)
equalsIgnoreTargets
in class WSSPolicy
public java.lang.Object clone()
clone
in class WSSPolicy
SignaturePolicy
,
EncryptionPolicy
,
AuthenticationTokenPolicy
public java.lang.String getType()
SecurityPolicy
Implementation Note: Useful to avoid instanceof checks and String.equals checks
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |