|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.hardware.cms.CMSSignedGenerator
public class CMSSignedGenerator
| Field Summary | |
|---|---|
protected java.util.List |
_certs
|
protected java.util.List |
_crls
|
protected java.util.Map |
_digests
|
protected java.util.List |
_signers
|
static java.lang.String |
DATA
Default type for the signed data. |
static java.lang.String |
DIGEST_GOST3411G
|
static java.lang.String |
DIGEST_KZ_GOST_34_11_95
|
static java.lang.String |
DIGEST_MD5
|
static java.lang.String |
DIGEST_SHA1
|
static java.lang.String |
ENCRYPTION_ECGOST3410
|
static java.lang.String |
ENCRYPTION_KZ_GOST_34_310_SIGNATURE
|
static java.lang.String |
ENCRYPTION_RSA
|
private static java.util.Set |
NO_PARAMS
|
| 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(java.security.cert.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 java.util.Map |
getBaseParameters(DERObjectIdentifier contentType,
AlgorithmIdentifier digAlgId,
byte[] hash)
|
protected AlgorithmIdentifier |
getEncAlgorithmIdentifier(java.lang.String encOid)
|
protected java.lang.String |
getEncOID(JCEPrivateKey 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_MD5
public static final java.lang.String DIGEST_GOST3411G
public static final java.lang.String DIGEST_KZ_GOST_34_11_95
public static final java.lang.String ENCRYPTION_RSA
public static final java.lang.String ENCRYPTION_ECGOST3410
public static final java.lang.String ENCRYPTION_KZ_GOST_34_310_SIGNATURE
private static final java.util.Set NO_PARAMS
protected java.util.List _certs
protected java.util.List _crls
protected java.util.List _signers
protected java.util.Map _digests
| Constructor Detail |
|---|
protected CMSSignedGenerator()
| Method Detail |
|---|
protected java.lang.String getEncOID(JCEPrivateKey key,
java.lang.String digestOID)
key - digestOID -
protected AlgorithmIdentifier getEncAlgorithmIdentifier(java.lang.String encOid)
encOid -
protected java.util.Map getBaseParameters(DERObjectIdentifier contentType,
AlgorithmIdentifier digAlgId,
byte[] hash)
contentType - digAlgId - hash -
protected ASN1Set getAttributeSet(AttributeTable attr)
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 addAttributeCertificates(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 java.util.Map getGeneratedDigests()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||