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 }
Modifier and Type | Field and Description |
---|---|
static int |
hours |
static int |
microseconds |
static int |
milliseconds |
static int |
minutes |
static int |
seconds |
static int |
sixtyHours |
static int |
years |
Modifier and Type | Method and 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) |
public static final int microseconds
public static final int milliseconds
public static final int seconds
public static final int minutes
public static final int hours
public static final int sixtyHours
public static final int years
public Duration(int tag, UINT16 value)
public static Duration getInstance(java.lang.Object o)
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
public int getChoice()
public UINT16 getDuration()
public java.lang.String toString()
toString
in class java.lang.Object