public class DefaultCMSSignatureAlgorithmNameGenerator extends Object implements CMSSignatureAlgorithmNameGenerator
Constructor and Description |
---|
DefaultCMSSignatureAlgorithmNameGenerator() |
Modifier and Type | Method and Description |
---|---|
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,
String algorithmName)
Set the mapping for the digest algorithm to use in conjunction with a SignedData generation
or interpretation.
|
protected void |
setSigningEncryptionAlgorithmMapping(ASN1ObjectIdentifier oid,
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, String algorithmName)
oid
- object identifier to map.algorithmName
- algorithm name to use.protected void setSigningDigestAlgorithmMapping(ASN1ObjectIdentifier oid, String algorithmName)
oid
- object identifier to map.algorithmName
- algorithm name to use.public String getSignatureName(AlgorithmIdentifier digestAlg, AlgorithmIdentifier encryptionAlg)
CMSSignatureAlgorithmNameGenerator
getSignatureName
in interface CMSSignatureAlgorithmNameGenerator
digestAlg
- the digest algorithm id.encryptionAlg
- the encryption, or signing, algorithm id.Copyright © 2020 BouncyCastle.org. All rights reserved.