Class TSTInfo
java.lang.Object
org.apache.harmony.security.x509.tsp.TSTInfo
public class TSTInfo extends Object
As defined in Time-Stamp Protocol (TSP)
(http://www.ietf.org/rfc/rfc3161.txt)
TSTInfo ::= SEQUENCE {
version INTEGER { v1(1) },
policy TSAPolicyId,
messageImprint MessageImprint,
-- MUST have the same value as the similar field in
-- TimeStampReq
serialNumber INTEGER,
-- Time-Stamping users MUST be ready to accommodate integers
-- up to 160 bits.
genTime GeneralizedTime,
accuracy Accuracy OPTIONAL,
ordering BOOLEAN DEFAULT FALSE,
nonce INTEGER OPTIONAL,
-- MUST be present if the similar field was present
-- in TimeStampReq. In that case it MUST have the same value.
tsa [0] GeneralName OPTIONAL,
extensions [1] IMPLICIT Extensions OPTIONAL
}
TSAPolicyId ::= OBJECT IDENTIFIER
"tsa [0] GeneralName OPTIONAL" is EXPLICIT and the word EXPLICIT is omitted.
-
Field Summary
Fields Modifier and Type Field Description static ASN1SequenceACCURACYAccuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL }static ASN1SequenceASN1 -
Constructor Summary
Constructors Constructor Description TSTInfo(int version, String policy, MessageImprint messageImprint, BigInteger serialNumber, Date genTime, int[] accuracy, Boolean ordering, BigInteger nonce, GeneralName tsa, Extensions extensions) -
Method Summary
Modifier and Type Method Description int[]getAccuracy()ExtensionsgetExtensions()DategetGenTime()MessageImprintgetMessageImprint()BigIntegergetNonce()BooleangetOrdering()StringgetPolicy()BigIntegergetSerialNumber()GeneralNamegetTsa()intgetVersion()StringtoString()Returns a string containing a concise, human-readable description of this object.
-
Field Details
-
ACCURACY
Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL } -
ASN1
-
-
Constructor Details
-
TSTInfo
public TSTInfo(int version, String policy, MessageImprint messageImprint, BigInteger serialNumber, Date genTime, int[] accuracy, Boolean ordering, BigInteger nonce, GeneralName tsa, Extensions extensions)
-
-
Method Details
-
toString
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod. -
getAccuracy
public int[] getAccuracy()- Returns:
- Returns the accuracy.
-
getExtensions
- Returns:
- Returns the extensions.
-
getGenTime
- Returns:
- Returns the genTime.
-
getMessageImprint
- Returns:
- Returns the messageImprint.
-
getNonce
- Returns:
- Returns the nonce.
-
getOrdering
- Returns:
- Returns the ordering.
-
getPolicy
- Returns:
- Returns the policy.
-
getSerialNumber
- Returns:
- Returns the serialNumber.
-
getTsa
- Returns:
- Returns the tsa.
-
getVersion
public int getVersion()- Returns:
- Returns the version.
-