Package org.bouncycastle.tsp
Class GenTimeAccuracy
- java.lang.Object
-
- org.bouncycastle.tsp.GenTimeAccuracy
-
public class GenTimeAccuracy extends java.lang.ObjectWrapper for theAccuracyfield 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 Constructor Description GenTimeAccuracy(org.bouncycastle.asn1.tsp.Accuracy accuracy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMicros()intgetMillis()intgetSeconds()java.lang.StringtoString()
-
-
-
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()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a string of the form
seconds.millismicros(e.g. "1.500000").
-
-