public class DefaultCMSSignatureAlgorithmNameGenerator extends java.lang.Object implements CMSSignatureAlgorithmNameGenerator
| Constructor and Description |
|---|
DefaultCMSSignatureAlgorithmNameGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSignatureName(AlgorithmIdentifier digestAlg,
AlgorithmIdentifier encryptionAlg)
Return the digest algorithm using one of the standard string
representations rather than the algorithm object identifier (if possible).
|
protected void |
setSigningDigestAlgorithmMapping(ASN1ObjectIdentifier oid,
java.lang.String algorithmName)
Set the mapping for the digest algorithm to use in conjunction with a SignedData generation
or interpretation.
|
protected void |
setSigningEncryptionAlgorithmMapping(ASN1ObjectIdentifier oid,
java.lang.String algorithmName)
Set the mapping for the encryption algorithm used in association with a SignedData generation
or interpretation.
|
public DefaultCMSSignatureAlgorithmNameGenerator()
protected void setSigningEncryptionAlgorithmMapping(ASN1ObjectIdentifier oid,
java.lang.String algorithmName)
oid - object identifier to map.algorithmName - algorithm name to use.protected void setSigningDigestAlgorithmMapping(ASN1ObjectIdentifier oid,
java.lang.String algorithmName)
oid - object identifier to map.algorithmName - algorithm name to use.public java.lang.String getSignatureName(AlgorithmIdentifier digestAlg,
AlgorithmIdentifier encryptionAlg)
CMSSignatureAlgorithmNameGeneratorgetSignatureName in interface CMSSignatureAlgorithmNameGeneratordigestAlg - the digest algorithm id.encryptionAlg - the encryption, or signing, algorithm id.