|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.cms.CMSSignedGenerator
public class 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 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_GOST3410
|
static java.lang.String |
ENCRYPTION_RSA
|
static java.lang.String |
ENCRYPTION_RSA_PSS
|
protected java.security.SecureRandom |
rand
|
protected java.util.List |
signerGens
|
| Constructor Summary | |
|---|---|
protected |
CMSSignedGenerator()
base constructor |
protected |
CMSSignedGenerator(java.security.SecureRandom rand)
constructor allowing specific source of randomness |
| Method Summary | |
|---|---|
void |
addAttributeCertificates(org.bouncycastle.util.Store attrStore)
|
void |
addAttributeCertificates(org.bouncycastle.x509.X509Store store)
Deprecated. use basic Store method |
void |
addCertificates(org.bouncycastle.util.Store certStore)
|
void |
addCertificatesAndCRLs(java.security.cert.CertStore certStore)
Deprecated. use addCertificates and addCRLs |
void |
addCRLs(org.bouncycastle.util.Store crlStore)
|
void |
addSignerInfoGenerator(SignerInfoGenerator infoGen)
|
void |
addSigners(SignerInformationStore signerStore)
Add a store of precalculated signers to the generator. |
protected org.bouncycastle.asn1.ASN1Set |
getAttributeSet(org.bouncycastle.asn1.cms.AttributeTable attr)
|
protected java.util.Map |
getBaseParameters(org.bouncycastle.asn1.DERObjectIdentifier contentType,
org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId,
byte[] hash)
|
protected java.lang.String |
getEncOID(java.security.PrivateKey key,
java.lang.String digestOID)
|
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
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 final java.security.SecureRandom rand
| Constructor Detail |
|---|
protected CMSSignedGenerator()
protected CMSSignedGenerator(java.security.SecureRandom rand)
rand - instance of SecureRandom to use| Method Detail |
|---|
protected java.lang.String getEncOID(java.security.PrivateKey key,
java.lang.String digestOID)
protected java.util.Map getBaseParameters(org.bouncycastle.asn1.DERObjectIdentifier contentType,
org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId,
byte[] hash)
protected org.bouncycastle.asn1.ASN1Set getAttributeSet(org.bouncycastle.asn1.cms.AttributeTable attr)
public void addCertificatesAndCRLs(java.security.cert.CertStore certStore)
throws java.security.cert.CertStoreException,
CMSException
Note: this assumes the CertStore will support null in the get methods.
certStore - CertStore containing the public key certificates and CRLs
java.security.cert.CertStoreException - if an issue occurs processing the CertStore
CMSException - if an issue occurse transforming data from the CertStore into the message
public void addCertificates(org.bouncycastle.util.Store certStore)
throws CMSException
CMSException
public void addCRLs(org.bouncycastle.util.Store crlStore)
throws CMSException
CMSException
public void addAttributeCertificates(org.bouncycastle.util.Store attrStore)
throws CMSException
CMSException
public void addAttributeCertificates(org.bouncycastle.x509.X509Store store)
throws CMSException
store - a store of Version 2 attribute certificates
CMSException - if an error occurse processing the store.public void addSigners(SignerInformationStore signerStore)
signerStore - store of signerspublic void addSignerInfoGenerator(SignerInfoGenerator infoGen)
public java.util.Map getGeneratedDigests()
|
Bouncy Castle Cryptography 1.47 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||