org.bouncycastle.asn1.tsp

Class Accuracy

Implemented Interfaces:
DEREncodable

public class Accuracy
extends ASN1Encodable

Field Summary

protected static int
MAX_MICROS
protected static int
MAX_MILLIS
protected static int
MIN_MICROS
protected static int
MIN_MILLIS

Constructor Summary

Accuracy()
Accuracy(ASN1Sequence seq)
Accuracy(DERInteger seconds, DERInteger millis, DERInteger micros)

Method Summary

static Accuracy
getInstance(Object o)
DERInteger
getMicros()
DERInteger
getMillis()
DERInteger
getSeconds()
DERObject
toASN1Object()
 Accuracy ::= SEQUENCE {
             seconds        INTEGER              OPTIONAL,
             millis     [0] INTEGER  (1..999)    OPTIONAL,
             micros     [1] INTEGER  (1..999)    OPTIONAL
             }
 

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Field Details

MAX_MICROS

protected static final int MAX_MICROS

Field Value:
999


MAX_MILLIS

protected static final int MAX_MILLIS

Field Value:
999


MIN_MICROS

protected static final int MIN_MICROS

Field Value:
1


MIN_MILLIS

protected static final int MIN_MILLIS

Field Value:
1

Constructor Details

Accuracy

protected Accuracy()


Accuracy

public Accuracy(ASN1Sequence seq)


Accuracy

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

Method Details

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
             }
 
Overrides:
toASN1Object in interface ASN1Encodable