org.bouncycastle.asn1.tsp

Class TimeStampReq

Implemented Interfaces:
DEREncodable

public class TimeStampReq
extends ASN1Encodable

Constructor Summary

TimeStampReq(ASN1Sequence seq)
TimeStampReq(MessageImprint messageImprint, DERObjectIdentifier tsaPolicy, DERInteger nonce, DERBoolean certReq, X509Extensions extensions)

Method Summary

DERBoolean
getCertReq()
X509Extensions
getExtensions()
static TimeStampReq
getInstance(Object o)
MessageImprint
getMessageImprint()
DERInteger
getNonce()
DERObjectIdentifier
getReqPolicy()
DERInteger
getVersion()
DERObject
toASN1Object()
 TimeStampReq ::= SEQUENCE  {
  version                      INTEGER  { v1(1) },
  messageImprint               MessageImprint,
    --a hash algorithm OID and the hash value of the data to be
    --time-stamped
  reqPolicy             TSAPolicyId              OPTIONAL,
  nonce                 INTEGER                  OPTIONAL,
  certReq               BOOLEAN                  DEFAULT FALSE,
  extensions            [0] IMPLICIT Extensions  OPTIONAL
 }
 

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

TimeStampReq

public TimeStampReq(ASN1Sequence seq)


TimeStampReq

public TimeStampReq(MessageImprint messageImprint,
                    DERObjectIdentifier tsaPolicy,
                    DERInteger nonce,
                    DERBoolean certReq,
                    X509Extensions extensions)

Method Details

getCertReq

public DERBoolean getCertReq()


getExtensions

public X509Extensions getExtensions()


getInstance

public static TimeStampReq getInstance(Object o)


getMessageImprint

public MessageImprint getMessageImprint()


getNonce

public DERInteger getNonce()


getReqPolicy

public DERObjectIdentifier getReqPolicy()


getVersion

public DERInteger getVersion()


toASN1Object

public DERObject toASN1Object()
 TimeStampReq ::= SEQUENCE  {
  version                      INTEGER  { v1(1) },
  messageImprint               MessageImprint,
    --a hash algorithm OID and the hash value of the data to be
    --time-stamped
  reqPolicy             TSAPolicyId              OPTIONAL,
  nonce                 INTEGER                  OPTIONAL,
  certReq               BOOLEAN                  DEFAULT FALSE,
  extensions            [0] IMPLICIT Extensions  OPTIONAL
 }
 
Overrides:
toASN1Object in interface ASN1Encodable