Top Description Fields Constructors Methods
org.bouncycastle.tsp

public Class TimeStampRequestGenerator

extends Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1Boolean, .ASN1Encodable, .ASN1Integer, .ASN1ObjectIdentifier, org.bouncycastle.asn1.tsp.MessageImprint, .TimeStampReq, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .Extensions, .ExtensionsGenerator, org.bouncycastle.operator.DefaultDigestAlgorithmIdentifierFinder

Generator for RFC 3161 Time Stamp Request objects.

Field Summary

Modifier and TypeField and Description
private ASN1Boolean
private static final DefaultDigestAlgorithmIdentifierFinder
private ExtensionsGenerator
private ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addExtension(String OID, boolean critical, ASN1Encodable value)

Deprecated use method taking ASN1ObjectIdentifier
add a given extension field for the standard extensions tag (tag 3)
public void
addExtension(String OID, boolean critical, byte[] value)

Deprecated use method taking ASN1ObjectIdentifier
add a given extension field for the standard extensions tag The value parameter becomes the contents of the octet string associated with the extension.
public void
addExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value)

add a given extension field for the standard extensions tag (tag 3)

public void
addExtension(ASN1ObjectIdentifier oid, boolean isCritical, byte[] value)

add a given extension field for the standard extensions tag The value parameter becomes the contents of the octet string associated with the extension.

public TimeStampRequest
generate(String digestAlgorithm, byte[] digest)

Deprecated use method taking ANS1ObjectIdentifier
public TimeStampRequest
generate(String digestAlgorithmOID, byte[] digest, BigInteger nonce)

Deprecated use method taking ANS1ObjectIdentifier
public TimeStampRequest
generate(ASN1ObjectIdentifier digestAlgorithm, byte[] digest)

public TimeStampRequest
generate(ASN1ObjectIdentifier digestAlgorithm, byte[] digest, BigInteger nonce)

public TimeStampRequest
generate(AlgorithmIdentifier digestAlgorithmID, byte[] digest)

public TimeStampRequest
generate(AlgorithmIdentifier digestAlgorithmID, byte[] digest, BigInteger nonce)

public void
setCertReq(boolean certReq)

public void
setReqPolicy(String reqPolicy)

Deprecated use method taking ASN1ObjectIdentifier
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certReqback to summary
private ASN1Boolean certReq
dgstAlgFinderback to summary
private static final DefaultDigestAlgorithmIdentifierFinder dgstAlgFinder
extGeneratorback to summary
private ExtensionsGenerator extGenerator
reqPolicyback to summary
private ASN1ObjectIdentifier reqPolicy

Constructor Detail

TimeStampRequestGeneratorback to summary
public TimeStampRequestGenerator()

Method Detail

addExtensionback to summary
public void addExtension(String OID, boolean critical, ASN1Encodable value) throws IOException

Deprecated

use method taking ASN1ObjectIdentifier

add a given extension field for the standard extensions tag (tag 3)

addExtensionback to summary
public void addExtension(String OID, boolean critical, byte[] value)

Deprecated

use method taking ASN1ObjectIdentifier

add a given extension field for the standard extensions tag The value parameter becomes the contents of the octet string associated with the extension.

addExtensionback to summary
public void addExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value) throws TSPIOException

add a given extension field for the standard extensions tag (tag 3)

addExtensionback to summary
public void addExtension(ASN1ObjectIdentifier oid, boolean isCritical, byte[] value)

add a given extension field for the standard extensions tag The value parameter becomes the contents of the octet string associated with the extension.

generateback to summary
public TimeStampRequest generate(String digestAlgorithm, byte[] digest)

Deprecated

use method taking ANS1ObjectIdentifier

generateback to summary
public TimeStampRequest generate(String digestAlgorithmOID, byte[] digest, BigInteger nonce)

Deprecated

use method taking ANS1ObjectIdentifier

generateback to summary
public TimeStampRequest generate(ASN1ObjectIdentifier digestAlgorithm, byte[] digest)
generateback to summary
public TimeStampRequest generate(ASN1ObjectIdentifier digestAlgorithm, byte[] digest, BigInteger nonce)
generateback to summary
public TimeStampRequest generate(AlgorithmIdentifier digestAlgorithmID, byte[] digest)
generateback to summary
public TimeStampRequest generate(AlgorithmIdentifier digestAlgorithmID, byte[] digest, BigInteger nonce)
setCertReqback to summary
public void setCertReq(boolean certReq)
setReqPolicyback to summary
public void setReqPolicy(String reqPolicy)

Deprecated

use method taking ASN1ObjectIdentifier

setReqPolicyback to summary
public void setReqPolicy(ASN1ObjectIdentifier reqPolicy)