public class TimestampPolicy extends WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID| Constructor and Description |
|---|
TimestampPolicy()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUIDisReadOnly, isReadOnlypublic 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)
WSSPolicyequals in class WSSPolicypolicy - the policy to be compared for equalitySignaturePolicy,
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
Copyright © 2005–2018 Oracle Corporation. All rights reserved.