Bouncy Castle Cryptography Library 1.87

org.bouncycastle.tsp
Class GenTimeAccuracy

java.lang.Object
  extended byorg.bouncycastle.tsp.GenTimeAccuracy

public class GenTimeAccuracy
extends java.lang.Object

Wrapper for the field of an RFC 3161 TSTInfo, expressing the time deviation around the genTime value of a time-stamp token as a seconds / milliseconds / microseconds triple. Components absent from the underlying ASN.1 structure are reported as zero.


Constructor Summary
GenTimeAccuracy(org.bouncycastle.asn1.tsp.Accuracy accuracy)
           
 
Method Summary
 int getMicros()
           
 int getMillis()
           
 int getSeconds()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenTimeAccuracy

public GenTimeAccuracy(org.bouncycastle.asn1.tsp.Accuracy accuracy)
Method Detail

getSeconds

public int getSeconds()
Returns:
the whole-seconds component of the accuracy, 0 if not present.

getMillis

public int getMillis()
Returns:
the milliseconds component of the accuracy, 0 if not present.

getMicros

public int getMicros()
Returns:
the microseconds component of the accuracy, 0 if not present.

toString

public java.lang.String toString()
Returns:
a string of the form (e.g. "1.500000").

Bouncy Castle Cryptography Library 1.87