com.rsa.swsj
Class Timestamp

java.lang.Object
  extended bycom.rsa.swsj.Timestamp

public final class Timestamp
extends java.lang.Object

This class represents a security timestamp. The timestamp represents the creation and expiration of the security semantics in UTC time.


Constructor Summary
Timestamp(SWSJContext context)

The default constructor that creates an empty Timestamp object that is initialized only with context.

 
Method Summary

 SWSJContext

getContext()

Gets the SWSJContext, that is used to carry a number of common parameters and state variables.

 java.util.Calendar

getCreationTime()

Gets the creation time of the security operation.

 java.util.Calendar

getExpirationTime()

Gets the expiration time of the security operation.

 java.lang.String

getId()

Gets the id for this timestamp that is used to reference the <Timestamp> element; for example, to reference the timestamp in a XML Signature.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timestamp

public Timestamp(SWSJContext context)
          throws InvalidParameterException
The default constructor that creates an empty Timestamp object that is initialized only with context.

Parameters:
context - An object that collects a number of common parameters and state variables; for example, JCE provider.
Throws:
InvalidParameterException - If the context is null.
Method Detail

getContext

public SWSJContext getContext()
Gets the SWSJContext, that is used to carry a number of common parameters and state variables.

Returns:
An object that collects a number of common parameters and state variables; for example, JCE provider.

getCreationTime

public java.util.Calendar getCreationTime()
Gets the creation time of the security operation.

Returns:
A Calendar object that represents the creation time, if the value was set during the processing the security operation; otherwise, null value will be returned.

getExpirationTime

public java.util.Calendar getExpirationTime()
Gets the expiration time of the security operation. A recipient should call StatutusInfo.getStatus() to check if the validation of the timestamp is succeeded, and might decide to ignore it if the validation is failed.

Returns:
A Calendar object that represents the expiration time, if the value was set during the processing the security operation; otherwise, null value will be returned.

getId

public java.lang.String getId()
Gets the id for this timestamp that is used to reference the <Timestamp> element; for example, to reference the timestamp in a XML Signature.

Returns:
The id for this timestamp.