|
||||||||||
| 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.
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID |
| Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
readonly |
| Constructor Summary | |
|---|---|
TimestampPolicy()
Default constructor |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone operator |
boolean |
equals(WSSPolicy policy)
equals operator |
boolean |
equalsIgnoreTargets(WSSPolicy policy)
|
String |
getCreationTime()
|
String |
getExpirationTime()
|
long |
getMaxClockSkew()
|
long |
getTimeout()
|
long |
getTimestampFreshness()
|
String |
getType()
Get the type of the policy. |
void |
setCreationTime(String creationTime)
set the CreationTime for the timestamp in this TimestampPolicy |
void |
setExpirationTime(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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimestampPolicy()
| Method Detail |
|---|
public void setCreationTime(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 String getCreationTime()
public long getTimeout()
public String getExpirationTime()
throws Exception
Exceptionpublic void setExpirationTime(String expirationTime)
expirationTime - the expiration timepublic long getMaxClockSkew()
public long getTimestampFreshness()
public boolean equals(WSSPolicy policy)
WSSPolicy
equals in class WSSPolicypolicy - the policy to be compared for equality
SignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy policy)
equalsIgnoreTargets in class WSSPolicypublic Object clone()
clone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic String getType()
SecurityPolicyImplementation 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 | |||||||||