java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.oer.its.ieee1609dot2.basetypes.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, UINT16 value)
  • Method Details

    • getInstance

      public static Duration getInstance(Object o)
    • years

      public static Duration years(UINT16 value)
    • sixtyHours

      public static Duration sixtyHours(UINT16 value)
    • hours

      public static Duration hours(UINT16 value)
    • minutes

      public static Duration minutes(UINT16 value)
    • seconds

      public static Duration seconds(UINT16 value)
    • 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 String toString()
      Overrides:
      toString in class Object