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
Fields Modifier and Type Field Description static int
hours
static int
microseconds
static int
milliseconds
static int
minutes
static int
seconds
static int
sixtyHours
static int
years
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChoice()
UINT16
getDuration()
static Duration
getInstance(java.lang.Object o)
static Duration
hours(UINT16 value)
static Duration
microseconds(UINT16 value)
static Duration
milliseconds(UINT16 value)
static Duration
minutes(UINT16 value)
static Duration
seconds(UINT16 value)
static Duration
sixtyHours(UINT16 value)
org.bouncycastle.asn1.ASN1Primitive
toASN1Primitive()
java.lang.String
toString()
static Duration
years(UINT16 value)
-
-
-
Field Detail
-
microseconds
public static final int microseconds
- See Also:
- Constant Field Values
-
milliseconds
public static final int milliseconds
- See Also:
- Constant Field Values
-
seconds
public static final int seconds
- See Also:
- Constant Field Values
-
minutes
public static final int minutes
- See Also:
- Constant Field Values
-
hours
public static final int hours
- See Also:
- Constant Field Values
-
sixtyHours
public static final int sixtyHours
- See Also:
- Constant Field Values
-
years
public static final int years
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Duration
public Duration(int tag, UINT16 value)
-
-
Method Detail
-
getInstance
public static Duration getInstance(java.lang.Object o)
-
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
public UINT16 getDuration()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-