Class Duration

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class Duration
    extends org.bouncycastle.asn1.ASN1Object
    implements org.bouncycastle.asn1.ASN1Choice
         Duration ::= CHOICE {
             microseconds Uint16,
             milliseconds Uint16,
             seconds Uint16,
             minutes Uint16,
             hours Uint16,
             sixtyHours Uint16,
             years Uint16
         }
     
    • Constructor Detail

      • Duration

        public Duration​(int tag,
                        UINT16 value)
    • Method Detail

      • getInstance

        public static Duration getInstance​(java.lang.Object o)
      • milliseconds

        public static Duration milliseconds​(UINT16 value)
      • microseconds

        public static Duration microseconds​(UINT16 value)
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      • getChoice

        public int getChoice()
      • getDuration

        public UINT16 getDuration()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object