Package org.bouncycastle.cms
Class DefaultCMSSignatureAlgorithmNameGenerator
java.lang.Object
org.bouncycastle.cms.DefaultCMSSignatureAlgorithmNameGenerator
- All Implemented Interfaces:
CMSSignatureAlgorithmNameGenerator
public class DefaultCMSSignatureAlgorithmNameGenerator extends Object implements CMSSignatureAlgorithmNameGenerator
-
Constructor Summary
Constructors Constructor Description DefaultCMSSignatureAlgorithmNameGenerator() -
Method Summary
Modifier and Type Method Description StringgetSignatureName(AlgorithmIdentifier digestAlg, AlgorithmIdentifier encryptionAlg)Return the digest algorithm using one of the standard string representations rather than the algorithm object identifier (if possible).protected voidsetSigningDigestAlgorithmMapping(ASN1ObjectIdentifier oid, String algorithmName)Set the mapping for the digest algorithm to use in conjunction with a SignedData generation or interpretation.protected voidsetSigningEncryptionAlgorithmMapping(ASN1ObjectIdentifier oid, String algorithmName)Set the mapping for the encryption algorithm used in association with a SignedData generation or interpretation.
-
Constructor Details
-
DefaultCMSSignatureAlgorithmNameGenerator
public DefaultCMSSignatureAlgorithmNameGenerator()
-
-
Method Details
-
setSigningEncryptionAlgorithmMapping
protected void setSigningEncryptionAlgorithmMapping(ASN1ObjectIdentifier oid, String algorithmName)Set the mapping for the encryption algorithm used in association with a SignedData generation or interpretation.- Parameters:
oid- object identifier to map.algorithmName- algorithm name to use.
-
setSigningDigestAlgorithmMapping
Set the mapping for the digest algorithm to use in conjunction with a SignedData generation or interpretation.- Parameters:
oid- object identifier to map.algorithmName- algorithm name to use.
-
getSignatureName
Description copied from interface:CMSSignatureAlgorithmNameGeneratorReturn the digest algorithm using one of the standard string representations rather than the algorithm object identifier (if possible).- Specified by:
getSignatureNamein interfaceCMSSignatureAlgorithmNameGenerator- Parameters:
digestAlg- the digest algorithm id.encryptionAlg- the encryption, or signing, algorithm id.
-