public class DefaultCMSSignatureAlgorithmNameGenerator extends java.lang.Object implements CMSSignatureAlgorithmNameGenerator
Modifier and Type | Class and Description |
---|---|
private static interface |
DefaultCMSSignatureAlgorithmNameGenerator.EACObjectIdentifiers |
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
digestAlgs |
private java.util.Map |
encryptionAlgs |
Constructor and Description |
---|
DefaultCMSSignatureAlgorithmNameGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
addEntries(org.bouncycastle.asn1.ASN1ObjectIdentifier alias,
java.lang.String digest,
java.lang.String encryption) |
private java.lang.String |
getDigestAlgName(org.bouncycastle.asn1.ASN1ObjectIdentifier digestAlgOID)
Return the digest algorithm using one of the standard JCA string
representations rather than the algorithm identifier (if possible).
|
private java.lang.String |
getEncryptionAlgName(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionAlgOID)
Return the digest encryption algorithm using one of the standard
JCA string representations rather the the algorithm identifier (if
possible).
|
java.lang.String |
getSignatureName(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlg)
Return the digest algorithm using one of the standard string
representations rather than the algorithm object identifier (if possible).
|
protected void |
setSigningDigestAlgorithmMapping(org.bouncycastle.asn1.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(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
java.lang.String algorithmName)
Set the mapping for the encryption algorithm used in association with a SignedData generation
or interpretation.
|
private final java.util.Map encryptionAlgs
private final java.util.Map digestAlgs
public DefaultCMSSignatureAlgorithmNameGenerator()
private void addEntries(org.bouncycastle.asn1.ASN1ObjectIdentifier alias, java.lang.String digest, java.lang.String encryption)
private java.lang.String getDigestAlgName(org.bouncycastle.asn1.ASN1ObjectIdentifier digestAlgOID)
private java.lang.String getEncryptionAlgName(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionAlgOID)
protected void setSigningEncryptionAlgorithmMapping(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, java.lang.String algorithmName)
oid
- object identifier to map.algorithmName
- algorithm name to use.protected void setSigningDigestAlgorithmMapping(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, java.lang.String algorithmName)
oid
- object identifier to map.algorithmName
- algorithm name to use.public java.lang.String getSignatureName(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlg)
CMSSignatureAlgorithmNameGenerator
getSignatureName
in interface CMSSignatureAlgorithmNameGenerator
digestAlg
- the digest algorithm id.encryptionAlg
- the encryption, or signing, algorithm id.