Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.util
Class MessageDigestUtils

java.lang.Object
  |
  +--org.bouncycastle.jcajce.util.MessageDigestUtils

public class MessageDigestUtils
extends java.lang.Object


Constructor Summary
MessageDigestUtils()
           
 
Method Summary
static AlgorithmIdentifier getDigestAlgID(java.lang.String digestName)
          Attempt to find a standard JCA name for the digest represented by the passed in OID.
static java.lang.String getDigestName(ASN1ObjectIdentifier digestAlgOID)
          Attempt to find a standard JCA name for the digest represented by the passed in OID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDigestUtils

public MessageDigestUtils()
Method Detail

getDigestAlgID

public static AlgorithmIdentifier getDigestAlgID(java.lang.String digestName)
Attempt to find a standard JCA name for the digest represented by the passed in OID.
Parameters:
digestName - name of the digest algorithm of interest.
Returns:
an algorithm identifier representing the digest.

getDigestName

public static java.lang.String getDigestName(ASN1ObjectIdentifier digestAlgOID)
Attempt to find a standard JCA name for the digest represented by the passed in OID.
Parameters:
digestAlgOID - the OID of the digest algorithm of interest.
Returns:
a string representing the standard name - the OID as a string if none available.

Bouncy Castle Cryptography Library 1.77.0