Class GenTimeAccuracy

java.lang.Object
org.bouncycastle.tsp.GenTimeAccuracy

public class GenTimeAccuracy extends Object
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 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

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a string of the form seconds.millismicros (e.g. "1.500000").