Package org.bouncycastle.asn1.tsp
Class Accuracy
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.tsp.Accuracy
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
public class Accuracy extends ASN1Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static intMAX_MICROSprotected static intMAX_MILLISprotected static intMIN_MICROSprotected static intMIN_MILLIS
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccuracy()Accuracy(ASN1Integer seconds, ASN1Integer millis, ASN1Integer micros)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccuracygetInstance(java.lang.Object o)ASN1IntegergetMicros()ASN1IntegergetMillis()ASN1IntegergetSeconds()ASN1PrimitivetoASN1Primitive()Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL }-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Field Detail
-
MIN_MILLIS
protected static final int MIN_MILLIS
- See Also:
- Constant Field Values
-
MAX_MILLIS
protected static final int MAX_MILLIS
- See Also:
- Constant Field Values
-
MIN_MICROS
protected static final int MIN_MICROS
- See Also:
- Constant Field Values
-
MAX_MICROS
protected static final int MAX_MICROS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Accuracy
protected Accuracy()
-
Accuracy
public Accuracy(ASN1Integer seconds, ASN1Integer millis, ASN1Integer micros)
-
-
Method Detail
-
getInstance
public static Accuracy getInstance(java.lang.Object o)
-
getSeconds
public ASN1Integer getSeconds()
-
getMillis
public ASN1Integer getMillis()
-
getMicros
public ASN1Integer getMicros()
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-