Bouncy Castle Cryptography Library 1.87

org.bouncycastle.operator
Interface DigestAlgorithmIdentifierFinder

All Superinterfaces:
AlgorithmIdentifierFinder
All Known Implementing Classes:
DefaultDigestAlgorithmIdentifierFinder

public interface DigestAlgorithmIdentifierFinder
extends AlgorithmIdentifierFinder


Method Summary
 org.bouncycastle.asn1.x509.AlgorithmIdentifier find(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId)
          Find the digest algorithm identifier that matches with the passed in signature algorithm identifier.
 org.bouncycastle.asn1.x509.AlgorithmIdentifier find(org.bouncycastle.asn1.ASN1ObjectIdentifier digestOid)
          Find the algorithm identifier that matches with the passed in digest OID.
 org.bouncycastle.asn1.x509.AlgorithmIdentifier find(java.lang.String digAlgName)
          Find the algorithm identifier that matches with the passed in digest name.
 

Method Detail

find

public org.bouncycastle.asn1.x509.AlgorithmIdentifier find(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId)
Find the digest algorithm identifier that matches with the passed in signature algorithm identifier.

Parameters:
sigAlgId - the signature algorithm of interest.
Returns:
an algorithm identifier for the corresponding digest, null if the signature algorithm does not identify one.

find

public org.bouncycastle.asn1.x509.AlgorithmIdentifier find(org.bouncycastle.asn1.ASN1ObjectIdentifier digestOid)
Find the algorithm identifier that matches with the passed in digest OID.

Parameters:
digestOid - the OID of the digest algorithm of interest.
Returns:
an algorithm identifier for the digest signature.

find

public org.bouncycastle.asn1.x509.AlgorithmIdentifier find(java.lang.String digAlgName)
Find the algorithm identifier that matches with the passed in digest name. The name may also be given in dotted OID form.

Specified by:
find in interface AlgorithmIdentifierFinder
Parameters:
digAlgName - the name of the digest algorithm of interest.
Returns:
an algorithm identifier for the digest signature.
Throws:
java.lang.IllegalArgumentException - if the name is not recognised.

Bouncy Castle Cryptography Library 1.87