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, .DigestAlgorithmIdentifierFinder

Generator for RFC 3161 Time Stamp Request objects.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
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 or AlgorithmIdentifier

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

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
public void
setCertReq(boolean certReq)

public void
public void
setReqPolicy(String reqPolicy)
Deprecated use method taking ASN1ObjectIdentifier

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certReqback to summary
private ASN1Boolean certReq
DEFAULT_DIGEST_ALG_FINDERback to summary
private static final DefaultDigestAlgorithmIdentifierFinder DEFAULT_DIGEST_ALG_FINDER
digestAlgFinderback to summary
private final DigestAlgorithmIdentifierFinder digestAlgFinder
extGeneratorback to summary
private final ExtensionsGenerator extGenerator
reqPolicyback to summary
private ASN1ObjectIdentifier reqPolicy

Constructor Detail

TimeStampRequestGeneratorback to summary
public TimeStampRequestGenerator()
TimeStampRequestGeneratorback to summary
public TimeStampRequestGenerator(DigestAlgorithmIdentifierFinder digestAlgFinder)

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 or AlgorithmIdentifier

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

Deprecated

use method taking ANS1ObjectIdentifier or AlgorithmIdentifier

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(ASN1Boolean certReq)
setCertReqback to summary
public void setCertReq(boolean certReq)
setReqPolicyback to summary
public void setReqPolicy(ASN1ObjectIdentifier reqPolicy)
setReqPolicyback to summary
public void setReqPolicy(String reqPolicy)

Deprecated

use method taking ASN1ObjectIdentifier