Top Description Fields Constructors Methods
org.bouncycastle.asn1.dvcs

public Class DVCSTime

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
java.util.Date, org.bouncycastle.asn1.ASN1Choice, .ASN1GeneralizedTime, .ASN1Object, .ASN1Primitive, .ASN1TaggedObject, org.bouncycastle.asn1.cms.ContentInfo

    DVCSTime ::= CHOICE  {
        genTime                      GeneralizedTime,
        timeStampToken               ContentInfo
    }

Field Summary

Modifier and TypeField and Description
private final ASN1GeneralizedTime
private final ContentInfo

Constructor Summary

AccessConstructor and Description
public
DVCSTime(Date time)

public
public
DVCSTime(ContentInfo timeStampToken)

Method Summary

Modifier and TypeMethod and Description
public ASN1GeneralizedTime
public static DVCSTime
public static DVCSTime
getInstance(ASN1TaggedObject obj, boolean explicit)

public ContentInfo
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

genTimeback to summary
private final ASN1GeneralizedTime genTime
timeStampTokenback to summary
private final ContentInfo timeStampToken

Constructor Detail

DVCSTimeback to summary
public DVCSTime(Date time)
DVCSTimeback to summary
public DVCSTime(ASN1GeneralizedTime genTime)
DVCSTimeback to summary
public DVCSTime(ContentInfo timeStampToken)

Method Detail

getGenTimeback to summary
public ASN1GeneralizedTime getGenTime()
getInstanceback to summary
public static DVCSTime getInstance(Object obj)
getInstanceback to summary
public static DVCSTime getInstance(ASN1TaggedObject obj, boolean explicit)
getTimeStampTokenback to summary
public ContentInfo getTimeStampToken()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object