kz.gamma.cms
Class CMSSignedHelper
java.lang.Object
kz.gamma.cms.CMSSignedHelper
class CMSSignedHelper
- extends java.lang.Object
|
Method Summary |
private void |
addCertsFromSet(java.util.List certs,
ASN1Set certSet,
java.lang.String provider)
|
private void |
addCRLsFromSet(java.util.List crls,
ASN1Set certSet,
java.lang.String provider)
|
private boolean |
anyCertHasTypeOther()
|
private boolean |
anyCertHasV1Attribute()
|
private boolean |
anyCertHasV2Attribute()
|
private boolean |
anyCrlHasTypeOther()
|
(package private) X509Store |
createAttributeStore(java.lang.String type,
java.lang.String provider,
ASN1Set certSet)
|
(package private) X509Store |
createCertificateStore(java.lang.String type,
java.lang.String provider,
ASN1Set certSet)
|
(package private) java.security.cert.CertStore |
createCertStore(java.lang.String type,
java.lang.String provider,
ASN1Set certSet,
ASN1Set crlSet)
|
(package private) X509Store |
createCRLsStore(java.lang.String type,
java.lang.String provider,
ASN1Set crlSet)
|
private java.security.MessageDigest |
createDigestInstance(java.lang.String algorithm,
java.lang.String provider)
|
(package private) java.lang.String |
getDigestAlgName(java.lang.String digestAlgOID)
Return the digest algorithm using one of the standard JCA string
representations rather than the algorithm identifier (if possible). |
(package private) java.lang.String[] |
getDigestAliases(java.lang.String algName)
|
(package private) java.security.MessageDigest |
getDigestInstance(java.lang.String algorithm,
java.lang.String provider)
|
(package private) java.lang.String |
getEncryptionAlgName(java.lang.String encryptionAlgOID)
Return the digest encryption algorithm using one of the standard
JCA string representations rather the the algorithm identifier (if
possible). |
(package private) java.security.Signature |
getSignatureInstance(java.lang.String algorithm,
java.lang.String provider)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
static final CMSSignedHelper INSTANCE
encryptionAlgs
private static final java.util.Map encryptionAlgs
digestAlgs
private static final java.util.Map digestAlgs
digestAliases
private static final java.util.Map digestAliases
CMSSignedHelper
CMSSignedHelper()
getDigestAlgName
java.lang.String getDigestAlgName(java.lang.String digestAlgOID)
- Return the digest algorithm using one of the standard JCA string
representations rather than the algorithm identifier (if possible).
- Parameters:
digestAlgOID - OID алгоритма хеширования
- Returns:
- Имя алгоритма хеширования
getDigestAliases
java.lang.String[] getDigestAliases(java.lang.String algName)
getEncryptionAlgName
java.lang.String getEncryptionAlgName(java.lang.String encryptionAlgOID)
- Return the digest encryption algorithm using one of the standard
JCA string representations rather the the algorithm identifier (if
possible).
- Parameters:
encryptionAlgOID -
- Returns:
getDigestInstance
java.security.MessageDigest getDigestInstance(java.lang.String algorithm,
java.lang.String provider)
throws java.security.NoSuchProviderException,
java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
createDigestInstance
private java.security.MessageDigest createDigestInstance(java.lang.String algorithm,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
- Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
getSignatureInstance
java.security.Signature getSignatureInstance(java.lang.String algorithm,
java.lang.String provider)
throws java.security.NoSuchProviderException,
java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
createAttributeStore
X509Store createAttributeStore(java.lang.String type,
java.lang.String provider,
ASN1Set certSet)
throws NoSuchStoreException,
java.security.NoSuchProviderException,
CMSException
- Throws:
NoSuchStoreException
java.security.NoSuchProviderException
CMSException
createCertificateStore
X509Store createCertificateStore(java.lang.String type,
java.lang.String provider,
ASN1Set certSet)
throws NoSuchStoreException,
java.security.NoSuchProviderException,
CMSException
- Throws:
NoSuchStoreException
java.security.NoSuchProviderException
CMSException
createCRLsStore
X509Store createCRLsStore(java.lang.String type,
java.lang.String provider,
ASN1Set crlSet)
throws NoSuchStoreException,
java.security.NoSuchProviderException,
CMSException
- Throws:
NoSuchStoreException
java.security.NoSuchProviderException
CMSException
createCertStore
java.security.cert.CertStore createCertStore(java.lang.String type,
java.lang.String provider,
ASN1Set certSet,
ASN1Set crlSet)
throws java.security.NoSuchProviderException,
CMSException,
java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchProviderException
CMSException
java.security.NoSuchAlgorithmException
addCertsFromSet
private void addCertsFromSet(java.util.List certs,
ASN1Set certSet,
java.lang.String provider)
throws java.security.NoSuchProviderException,
CMSException
- Throws:
java.security.NoSuchProviderException
CMSException
addCRLsFromSet
private void addCRLsFromSet(java.util.List crls,
ASN1Set certSet,
java.lang.String provider)
throws java.security.NoSuchProviderException,
CMSException
- Throws:
java.security.NoSuchProviderException
CMSException
anyCertHasTypeOther
private boolean anyCertHasTypeOther()
anyCertHasV1Attribute
private boolean anyCertHasV1Attribute()
anyCertHasV2Attribute
private boolean anyCertHasV2Attribute()
anyCrlHasTypeOther
private boolean anyCrlHasTypeOther()
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.