Class Duration

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.oer.its.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
     }
 
  • Field Details

  • Constructor Details

    • Duration

      public Duration(int tag, int value)
  • Method Details

    • getInstance

      public static Duration getInstance(Object o)
    • 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
    • getTag

      public int getTag()
    • getValue

      public int getValue()