Bouncy Castle Cryptography Library 1.81

org.bouncycastle.operator.jcajce
Class JcaContentSignerBuilder

java.lang.Object
  extended byorg.bouncycastle.operator.jcajce.JcaContentSignerBuilder

public class JcaContentSignerBuilder
extends java.lang.Object


Constructor Summary
JcaContentSignerBuilder(java.lang.String signatureAlgorithm)
          Construct a basic content signer where the signature algorithm name tells us all we need to know.
JcaContentSignerBuilder(java.lang.String signatureAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureDigestAlgorithmID)
          Constructor which includes the digest algorithm identifier used.
JcaContentSignerBuilder(java.lang.String signatureAlgorithm, java.security.spec.AlgorithmParameterSpec sigParamSpec)
           
JcaContentSignerBuilder(java.lang.String signatureAlgorithm, java.security.spec.AlgorithmParameterSpec sigParamSpec, org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureDigestAlgorithmID)
           
 
Method Summary
 ContentSigner build(java.security.PrivateKey privateKey)
           
 JcaContentSignerBuilder setProvider(java.security.Provider provider)
           
 JcaContentSignerBuilder setProvider(java.lang.String providerName)
           
 JcaContentSignerBuilder setSecureRandom(java.security.SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcaContentSignerBuilder

public JcaContentSignerBuilder(java.lang.String signatureAlgorithm)
Construct a basic content signer where the signature algorithm name tells us all we need to know.

Parameters:
signatureAlgorithm - the signature algorithm we perform.

JcaContentSignerBuilder

public JcaContentSignerBuilder(java.lang.String signatureAlgorithm,
                               org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureDigestAlgorithmID)
Constructor which includes the digest algorithm identifier used.

Some PKIX operations, such as CMS signing, require the digest algorithm used for in the signature, this constructor allows the digest algorithm identifier to be explicitly specified.

Parameters:
signatureAlgorithm - the signature algorithm we perform.
signatureDigestAlgorithmID - the public key associated with our private key.

JcaContentSignerBuilder

public JcaContentSignerBuilder(java.lang.String signatureAlgorithm,
                               java.security.spec.AlgorithmParameterSpec sigParamSpec)

JcaContentSignerBuilder

public JcaContentSignerBuilder(java.lang.String signatureAlgorithm,
                               java.security.spec.AlgorithmParameterSpec sigParamSpec,
                               org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureDigestAlgorithmID)
Method Detail

setProvider

public JcaContentSignerBuilder setProvider(java.security.Provider provider)

setProvider

public JcaContentSignerBuilder setProvider(java.lang.String providerName)

setSecureRandom

public JcaContentSignerBuilder setSecureRandom(java.security.SecureRandom random)

build

public ContentSigner build(java.security.PrivateKey privateKey)
                    throws OperatorCreationException
Throws:
OperatorCreationException

Bouncy Castle Cryptography Library 1.81