org.bouncycastle.cms
public class CMSSignedGenerator extends Object
| Field Summary | |
|---|---|
| static String | DATA
Default type for the signed data. |
| static String | DIGEST_GOST3411 |
| static String | DIGEST_MD5 |
| static String | DIGEST_RIPEMD128 |
| static String | DIGEST_RIPEMD160 |
| static String | DIGEST_RIPEMD256 |
| static String | DIGEST_SHA1 |
| static String | DIGEST_SHA224 |
| static String | DIGEST_SHA256 |
| static String | DIGEST_SHA384 |
| static String | DIGEST_SHA512 |
| static String | ENCRYPTION_DSA |
| static String | ENCRYPTION_ECDSA |
| static String | ENCRYPTION_ECGOST3410 |
| static String | ENCRYPTION_GOST3410 |
| static String | ENCRYPTION_RSA |
| static String | ENCRYPTION_RSA_PSS |
| protected List | _certs |
| protected List | _crls |
| protected Map | _digests |
| protected List | _signers |
| Constructor Summary | |
|---|---|
| protected | CMSSignedGenerator() |
| Method Summary | |
|---|---|
| void | addAttributeCertificates(X509Store store)
Add the attribute certificates contained in the passed in store to the
generator.
|
| void | addCertificatesAndCRLs(CertStore certStore)
add the certificates and CRLs contained in the given CertStore
to the pool that will be included in the encoded signature block.
|
| void | addSigners(SignerInformationStore signerStore)
Add a store of precalculated signers to the generator.
|
| protected ASN1Set | getAttributeSet(AttributeTable attr) |
| protected Map | getBaseParameters(DERObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte[] hash) |
| protected AlgorithmIdentifier | getEncAlgorithmIdentifier(String encOid) |
| protected String | getEncOID(PrivateKey key, String digestOID) |
| Map | getGeneratedDigests()
Return a map of oids and byte arrays representing the digests calculated on the content during
the last generate.
|
Parameters: store a store of Version 2 attribute certificates
Throws: CMSException if an error occurse processing the store.
Note: this assumes the CertStore will support null in the get methods.
Parameters: certStore CertStore containing the public key certificates and CRLs
Throws: java.security.cert.CertStoreException if an issue occurs processing the CertStore CMSException if an issue occurse transforming data from the CertStore into the message
Parameters: signerStore store of signers
Returns: a map of oids (as String objects) and byte[] representing digests.