Top Fields Constructors Methods
org.bouncycastle.cms

public Class DefaultCMSSignatureAlgorithmNameGenerator

extends Object
implements CMSSignatureAlgorithmNameGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.CMSSignatureAlgorithmNameGenerator
Imports
java.util.HashMap, .Map, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.bc.BCObjectIdentifiers, org.bouncycastle.asn1.bsi.BSIObjectIdentifiers, org.bouncycastle.asn1.cms.CMSObjectIdentifiers, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.eac.EACObjectIdentifiers, org.bouncycastle.asn1.edec.EdECObjectIdentifiers, org.bouncycastle.asn1.gm.GMObjectIdentifiers, org.bouncycastle.asn1.misc.MiscObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.rosstandart.RosstandartObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .X509ObjectIdentifiers, org.bouncycastle.asn1.x9.X9ObjectIdentifiers

Field Summary

Modifier and TypeField and Description
private final Map<K, V>
private final Map<K, V>
private final Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
addEntries(ASN1ObjectIdentifier alias, String digest, String encryption)

private String
getDigestAlgName(ASN1ObjectIdentifier digestAlgOID)

Return the digest algorithm using one of the standard JCA string representations rather than the algorithm identifier (if possible).

private String
getEncryptionAlgName(ASN1ObjectIdentifier encryptionAlgOID)

Return the digest encryption algorithm using one of the standard JCA string representations rather the the algorithm identifier (if possible).

public String
getSignatureName(AlgorithmIdentifier
the digest algorithm id.
digestAlg
,
AlgorithmIdentifier
the encryption, or signing, algorithm id.
encryptionAlg
)

Implements org.bouncycastle.cms.CMSSignatureAlgorithmNameGenerator.getSignatureName.

Return the digest algorithm using one of the standard string representations rather than the algorithm object identifier (if possible).
protected void
setSigningDigestAlgorithmMapping(ASN1ObjectIdentifier
object identifier to map.
oid
,
String
algorithm name to use.
algorithmName
)

Set the mapping for the digest algorithm to use in conjunction with a SignedData generation or interpretation.

protected void
setSigningEncryptionAlgorithmMapping(ASN1ObjectIdentifier
object identifier to map.
oid
,
String
algorithm name to use.
algorithmName
)

Set the mapping for the encryption algorithm used in association with a SignedData generation or interpretation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestAlgsback to summary
private final Map<K, V> digestAlgs
encryptionAlgsback to summary
private final Map<K, V> encryptionAlgs
simpleAlgsback to summary
private final Map<K, V> simpleAlgs

Constructor Detail

DefaultCMSSignatureAlgorithmNameGeneratorback to summary
public DefaultCMSSignatureAlgorithmNameGenerator()

Method Detail

addEntriesback to summary
private void addEntries(ASN1ObjectIdentifier alias, String digest, String encryption)
getDigestAlgNameback to summary
private String getDigestAlgName(ASN1ObjectIdentifier digestAlgOID)

Return the digest algorithm using one of the standard JCA string representations rather than the algorithm identifier (if possible).

getEncryptionAlgNameback to summary
private String getEncryptionAlgName(ASN1ObjectIdentifier encryptionAlgOID)

Return the digest encryption algorithm using one of the standard JCA string representations rather the the algorithm identifier (if possible).

getSignatureNameback to summary
public String getSignatureName(AlgorithmIdentifier digestAlg, AlgorithmIdentifier encryptionAlg)

Implements org.bouncycastle.cms.CMSSignatureAlgorithmNameGenerator.getSignatureName.

Doc from org.bouncycastle.cms.CMSSignatureAlgorithmNameGenerator.getSignatureName.

Return the digest algorithm using one of the standard string representations rather than the algorithm object identifier (if possible).

Parameters
digestAlg:AlgorithmIdentifier

the digest algorithm id.

encryptionAlg:AlgorithmIdentifier

the encryption, or signing, algorithm id.

setSigningDigestAlgorithmMappingback to summary
protected void setSigningDigestAlgorithmMapping(ASN1ObjectIdentifier oid, String algorithmName)

Set the mapping for the digest algorithm to use in conjunction with a SignedData generation or interpretation.

Parameters
oid:ASN1ObjectIdentifier

object identifier to map.

algorithmName:String

algorithm name to use.

setSigningEncryptionAlgorithmMappingback to summary
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:ASN1ObjectIdentifier

object identifier to map.

algorithmName:String

algorithm name to use.