|
Bouncy Castle Cryptography 1.46 | ||||||||
| 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(Store attrStore)
|
void |
addCertificates(Store certStore)
|
void |
addCertificatesAndCRLs(java.security.cert.CertStore certStore)
Deprecated. use addCertificates and addCRLs |
void |
addCRLs(Store crlStore)
|
void |
addSignerInfoGenerator(SignerInfoGenerator infoGen)
|
void |
addSigners(SignerInformationStore signerStore)
Add a store of precalculated signers to the generator. |
protected ASN1Set |
getAttributeSet(AttributeTable attr)
|
protected java.util.Map |
getBaseParameters(DERObjectIdentifier contentType,
AlgorithmIdentifier digAlgId,
byte[] hash)
|
protected AlgorithmIdentifier |
getEncAlgorithmIdentifier(java.lang.String encOid,
java.security.Signature sig)
|
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 AlgorithmIdentifier getEncAlgorithmIdentifier(java.lang.String encOid,
java.security.Signature sig)
throws java.io.IOException
java.io.IOException
protected java.util.Map getBaseParameters(DERObjectIdentifier contentType,
AlgorithmIdentifier digAlgId,
byte[] hash)
protected ASN1Set getAttributeSet(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(Store certStore)
throws CMSException
CMSException
public void addCRLs(Store crlStore)
throws CMSException
CMSException
public void addAttributeCertificates(Store attrStore)
throws CMSException
CMSExceptionpublic void addSigners(SignerInformationStore signerStore)
signerStore - store of signerspublic void addSignerInfoGenerator(SignerInfoGenerator infoGen)
public java.util.Map getGeneratedDigests()
|
Bouncy Castle Cryptography 1.46 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||