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.ASN1ChoiceDuration ::= CHOICE { microseconds Uint16, milliseconds Uint16, seconds Uint16, minutes Uint16, hours Uint16, sixtyHours Uint16, years Uint16 }
-
-
Field Summary
Fields Modifier and Type Field Description static inthoursstatic intmicrosecondsstatic intmillisecondsstatic intminutesstatic intsecondsstatic intsixtyHoursstatic intyears
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChoice()UINT16getDuration()static DurationgetInstance(java.lang.Object o)static Durationhours(UINT16 value)static Durationmicroseconds(UINT16 value)static Durationmilliseconds(UINT16 value)static Durationminutes(UINT16 value)static Durationseconds(UINT16 value)static DurationsixtyHours(UINT16 value)org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()java.lang.StringtoString()static Durationyears(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:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
getChoice
public int getChoice()
-
getDuration
public UINT16 getDuration()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-