org.bouncycastle.asn1.tsp

Class TimeStampReq

public class TimeStampReq extends ASN1Encodable

Constructor Summary
TimeStampReq(ASN1Sequence seq)
TimeStampReq(MessageImprint messageImprint, DERObjectIdentifier tsaPolicy, DERInteger nonce, DERBoolean certReq, X509Extensions extensions)
Method Summary
DERBooleangetCertReq()
X509ExtensionsgetExtensions()
static TimeStampReqgetInstance(Object o)
MessageImprintgetMessageImprint()
DERIntegergetNonce()
DERObjectIdentifiergetReqPolicy()
DERIntegergetVersion()
DERObjecttoASN1Object()
 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
 }
 

Constructor Detail

TimeStampReq

public TimeStampReq(ASN1Sequence seq)

TimeStampReq

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

Method Detail

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
 }