Class Duration
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static Duration
static Duration
static Duration
microseconds
(UINT16 value) static Duration
milliseconds
(UINT16 value) static Duration
static Duration
static Duration
sixtyHours
(UINT16 value) org.bouncycastle.asn1.ASN1Primitive
toString()
static Duration
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
microseconds
public static final int microseconds- See Also:
-
milliseconds
public static final int milliseconds- See Also:
-
seconds
public static final int seconds- See Also:
-
minutes
public static final int minutes- See Also:
-
hours
public static final int hours- See Also:
-
sixtyHours
public static final int sixtyHours- See Also:
-
years
public static final int years- See Also:
-
-
Constructor Details
-
Duration
-
-
Method Details
-
getInstance
-
years
-
sixtyHours
-
hours
-
minutes
-
seconds
-
milliseconds
-
microseconds
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-
getChoice
public int getChoice() -
getDuration
-
toString
-