Bouncy Castle Cryptography Library 1.37

org.bouncycastle.asn1.tsp
Class Accuracy

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.tsp.Accuracy
All 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
           
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
protected Accuracy()
           
  Accuracy(ASN1Sequence seq)
           
  Accuracy(DERInteger seconds, DERInteger millis, DERInteger micros)
           
 
Method Summary
static Accuracy getInstance(java.lang.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, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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(DERInteger seconds,
                DERInteger millis,
                DERInteger micros)

Accuracy

public Accuracy(ASN1Sequence seq)
Method Detail

getInstance

public static Accuracy getInstance(java.lang.Object o)

getSeconds

public DERInteger getSeconds()

getMillis

public DERInteger getMillis()

getMicros

public DERInteger getMicros()

toASN1Object

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

Specified by:
toASN1Object in class ASN1Encodable

Bouncy Castle Cryptography Library 1.37