org.bouncycastle.asn1.tsp

Class Accuracy

public class Accuracy extends ASN1Encodable

Field Summary
protected static intMAX_MICROS
protected static intMAX_MILLIS
protected static intMIN_MICROS
protected static intMIN_MILLIS
Constructor Summary
protected Accuracy()
Accuracy(DERInteger seconds, DERInteger millis, DERInteger micros)
Accuracy(ASN1Sequence seq)
Method Summary
static AccuracygetInstance(Object o)
DERIntegergetMicros()
DERIntegergetMillis()
DERIntegergetSeconds()
DERObjecttoASN1Object()
 Accuracy ::= SEQUENCE {
             seconds        INTEGER              OPTIONAL,
             millis     [0] INTEGER  (1..999)    OPTIONAL,
             micros     [1] INTEGER  (1..999)    OPTIONAL
             }
 

Field Detail

MAX_MICROS

protected static final int MAX_MICROS

MAX_MILLIS

protected static final int MAX_MILLIS

MIN_MICROS

protected static final int MIN_MICROS

MIN_MILLIS

protected static final int MIN_MILLIS

Constructor Detail

Accuracy

protected Accuracy()

Accuracy

public Accuracy(DERInteger seconds, DERInteger millis, DERInteger micros)

Accuracy

public Accuracy(ASN1Sequence seq)

Method Detail

getInstance

public static Accuracy getInstance(Object o)

getMicros

public DERInteger getMicros()

getMillis

public DERInteger getMillis()

getSeconds

public DERInteger getSeconds()

toASN1Object

public DERObject toASN1Object()
 Accuracy ::= SEQUENCE {
             seconds        INTEGER              OPTIONAL,
             millis     [0] INTEGER  (1..999)    OPTIONAL,
             micros     [1] INTEGER  (1..999)    OPTIONAL
             }