Class GenTimeAccuracy
java.lang.Object
org.bouncycastle.tsp.GenTimeAccuracy
Wrapper for the
Accuracy 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
Constructors -
Method Summary
-
Constructor Details
-
GenTimeAccuracy
public GenTimeAccuracy(org.bouncycastle.asn1.tsp.Accuracy accuracy)
-
-
Method Details
-
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
-