public class JcaSignerInfoGeneratorBuilder extends Object
Constructor and Description |
---|
JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider) |
Modifier and Type | Method and Description |
---|---|
SignerInfoGenerator |
build(ContentSigner contentSigner,
byte[] keyIdentifier) |
SignerInfoGenerator |
build(ContentSigner contentSigner,
X509Certificate certificate) |
SignerInfoGenerator |
build(ContentSigner contentSigner,
X509CertificateHolder certHolder) |
JcaSignerInfoGeneratorBuilder |
setDirectSignature(boolean hasNoSignedAttributes)
If the passed in flag is true, the signer signature will be based on the data, not
a collection of signed attributes, and no signed attributes will be included.
|
JcaSignerInfoGeneratorBuilder |
setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen) |
JcaSignerInfoGeneratorBuilder |
setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen) |
public JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
public JcaSignerInfoGeneratorBuilder setDirectSignature(boolean hasNoSignedAttributes)
public JcaSignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
public JcaSignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
public SignerInfoGenerator build(ContentSigner contentSigner, X509CertificateHolder certHolder) throws OperatorCreationException
OperatorCreationException
public SignerInfoGenerator build(ContentSigner contentSigner, byte[] keyIdentifier) throws OperatorCreationException
OperatorCreationException
public SignerInfoGenerator build(ContentSigner contentSigner, X509Certificate certificate) throws OperatorCreationException, CertificateEncodingException
Copyright © 2015. All rights reserved.