|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.cms.CMSSignedGenerator
Field Summary | |
protected java.util.List |
_signers
|
protected java.util.List |
certs
|
protected java.util.List |
crls
|
static java.lang.String |
DATA
Default type for the signed data. |
static java.lang.String |
DIGEST_GOST3411
|
static java.lang.String |
DIGEST_MD5
|
static java.lang.String |
DIGEST_RIPEMD128
|
static java.lang.String |
DIGEST_RIPEMD160
|
static java.lang.String |
DIGEST_RIPEMD256
|
static java.lang.String |
DIGEST_SHA1
|
static java.lang.String |
DIGEST_SHA224
|
static java.lang.String |
DIGEST_SHA256
|
static java.lang.String |
DIGEST_SHA384
|
static java.lang.String |
DIGEST_SHA512
|
protected DigestAlgorithmIdentifierFinder |
digestAlgIdFinder
|
protected java.util.Map |
digests
|
static java.lang.String |
ENCRYPTION_DSA
|
static java.lang.String |
ENCRYPTION_ECDSA
|
static java.lang.String |
ENCRYPTION_ECGOST3410
|
static java.lang.String |
ENCRYPTION_ECGOST3410_2012_256
|
static java.lang.String |
ENCRYPTION_ECGOST3410_2012_512
|
static java.lang.String |
ENCRYPTION_GOST3410
|
static java.lang.String |
ENCRYPTION_RSA
|
static java.lang.String |
ENCRYPTION_RSA_PSS
|
protected java.util.List |
signerGens
|
Constructor Summary | |
protected |
CMSSignedGenerator()
base constructor |
protected |
CMSSignedGenerator(DigestAlgorithmIdentifierFinder digestAlgIdFinder)
|
Method Summary | |
void |
addAttributeCertificate(X509AttributeCertificateHolder attrCert)
Add the attribute certificates in attrStore to the certificate set to be included with the generated SignedData message. |
void |
addAttributeCertificates(org.bouncycastle.util.Store attrStore)
Add the attribute certificates in attrStore to the certificate set to be included with the generated SignedData message. |
void |
addCertificate(X509CertificateHolder certificate)
Add a certificate to the certificate set to be included with the generated SignedData message. |
void |
addCertificates(org.bouncycastle.util.Store certStore)
Add the certificates in certStore to the certificate set to be included with the generated SignedData message. |
void |
addCRL(X509CRLHolder crl)
Add a CRL to the CRL set to be included with the generated SignedData message. |
void |
addCRLs(org.bouncycastle.util.Store crlStore)
Add the CRLs in crlStore to the CRL set to be included with the generated SignedData message. |
void |
addOtherRevocationInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier otherRevocationInfoFormat,
org.bouncycastle.asn1.ASN1Encodable otherRevocationInfo)
Add a single instance of otherRevocationData to the CRL set to be included with the generated SignedData message. |
void |
addOtherRevocationInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier otherRevocationInfoFormat,
org.bouncycastle.util.Store otherRevocationInfos)
Add a Store of otherRevocationData to the CRL set to be included with the generated SignedData message. |
void |
addSignerInfoGenerator(SignerInfoGenerator infoGen)
Add a generator for a particular signer to this CMS SignedData generator. |
void |
addSigners(SignerInformationStore signerStore)
Add a store of pre-calculated signers to the generator. |
protected java.util.Map |
getBaseParameters(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType,
org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId,
byte[] hash)
|
java.util.Map |
getGeneratedDigests()
Return a map of oids and byte arrays representing the digests calculated on the content during the last generate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DATA
public static final java.lang.String DIGEST_SHA1
public static final java.lang.String DIGEST_SHA224
public static final java.lang.String DIGEST_SHA256
public static final java.lang.String DIGEST_SHA384
public static final java.lang.String DIGEST_SHA512
public static final java.lang.String DIGEST_MD5
public static final java.lang.String DIGEST_GOST3411
public static final java.lang.String DIGEST_RIPEMD128
public static final java.lang.String DIGEST_RIPEMD160
public static final java.lang.String DIGEST_RIPEMD256
public static final java.lang.String ENCRYPTION_RSA
public static final java.lang.String ENCRYPTION_DSA
public static final java.lang.String ENCRYPTION_ECDSA
public static final java.lang.String ENCRYPTION_RSA_PSS
public static final java.lang.String ENCRYPTION_GOST3410
public static final java.lang.String ENCRYPTION_ECGOST3410
public static final java.lang.String ENCRYPTION_ECGOST3410_2012_256
public static final java.lang.String ENCRYPTION_ECGOST3410_2012_512
protected java.util.List certs
protected java.util.List crls
protected java.util.List _signers
protected java.util.List signerGens
protected java.util.Map digests
protected DigestAlgorithmIdentifierFinder digestAlgIdFinder
Constructor Detail |
protected CMSSignedGenerator()
protected CMSSignedGenerator(DigestAlgorithmIdentifierFinder digestAlgIdFinder)
Method Detail |
protected java.util.Map getBaseParameters(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId, byte[] hash)
public void addCertificate(X509CertificateHolder certificate) throws CMSException
certificate
- the certificate to be included.CMSException
- if the certificate cannot be encoded for adding.public void addCertificates(org.bouncycastle.util.Store certStore) throws CMSException
certStore
- the store containing the certificates to be included.CMSException
- if the certificates cannot be encoded for adding.public void addCRL(X509CRLHolder crl)
crl
- the CRL to be included.public void addCRLs(org.bouncycastle.util.Store crlStore) throws CMSException
crlStore
- the store containing the CRLs to be included.CMSException
- if the CRLs cannot be encoded for adding.public void addAttributeCertificate(X509AttributeCertificateHolder attrCert) throws CMSException
attrCert
- the store containing the certificates to be included.CMSException
- if the attribute certificate cannot be encoded for adding.public void addAttributeCertificates(org.bouncycastle.util.Store attrStore) throws CMSException
attrStore
- the store containing the certificates to be included.CMSException
- if the attribute certificate cannot be encoded for adding.public void addOtherRevocationInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier otherRevocationInfoFormat, org.bouncycastle.asn1.ASN1Encodable otherRevocationInfo)
otherRevocationInfoFormat
- the OID specifying the format of the otherRevocationInfo data.otherRevocationInfo
- the otherRevocationInfo ASN.1 structure.public void addOtherRevocationInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier otherRevocationInfoFormat, org.bouncycastle.util.Store otherRevocationInfos)
otherRevocationInfoFormat
- the OID specifying the format of the otherRevocationInfo data.otherRevocationInfos
- a Store of otherRevocationInfo data to add.public void addSigners(SignerInformationStore signerStore)
signerStore
- store of signerspublic void addSignerInfoGenerator(SignerInfoGenerator infoGen)
infoGen
- the generator representing the particular signer.public java.util.Map getGeneratedDigests()
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |