Class GenTimeAccuracy


  • public class GenTimeAccuracy
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      GenTimeAccuracy​(org.bouncycastle.asn1.tsp.Accuracy accuracy)  
    • 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()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string of the form seconds.millismicros (e.g. "1.500000").