Top Fields Constructors Methods
org.bouncycastle.jcajce.util

public Class MessageDigestUtils

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, org.bouncycastle.asn1.ASN1ObjectIdentifier, .DERNull, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.gm.GMObjectIdentifiers, org.bouncycastle.asn1.gnu.GNUObjectIdentifiers, org.bouncycastle.asn1.iso.ISOIECObjectIdentifiers, org.bouncycastle.asn1.misc.MiscObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Field Summary

Modifier and TypeField and Description
private static Map<String, AlgorithmIdentifier>
private static Map<ASN1ObjectIdentifier, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AlgorithmIdentifier

Returns:

an algorithm identifier representing the digest.
getDigestAlgID
(String
name of the digest algorithm of interest.
digestName
)

Attempt to find a standard JCA name for the digest represented by the passed in OID.

public static String

Returns:

a string representing the standard name - the OID as a string if none available.
getDigestName
(ASN1ObjectIdentifier
the OID of the digest algorithm of interest.
digestAlgOID
)

Attempt to find a standard JCA name for the digest represented by the passed in OID.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestAlgIdMapback to summary
private static Map<String, AlgorithmIdentifier> digestAlgIdMap
digestOidMapback to summary
private static Map<ASN1ObjectIdentifier, String> digestOidMap

Constructor Detail

MessageDigestUtilsback to summary
public MessageDigestUtils()

Method Detail

getDigestAlgIDback to summary
public static AlgorithmIdentifier getDigestAlgID(String digestName)

Attempt to find a standard JCA name for the digest represented by the passed in OID.

Parameters
digestName:String

name of the digest algorithm of interest.

Returns:AlgorithmIdentifier

an algorithm identifier representing the digest.

getDigestNameback to summary
public static String getDigestName(ASN1ObjectIdentifier digestAlgOID)

Attempt to find a standard JCA name for the digest represented by the passed in OID.

Parameters
digestAlgOID:ASN1ObjectIdentifier

the OID of the digest algorithm of interest.

Returns:String

a string representing the standard name - the OID as a string if none available.