Package org.bouncycastle.operator
Class DefaultDigestAlgorithmIdentifierFinder
java.lang.Object
org.bouncycastle.operator.DefaultDigestAlgorithmIdentifierFinder
- All Implemented Interfaces:
DigestAlgorithmIdentifierFinder
public class DefaultDigestAlgorithmIdentifierFinder
extends Object
implements DigestAlgorithmIdentifierFinder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.AlgorithmIdentifierFind the algorithm identifier that matches with the passed in digest name.org.bouncycastle.asn1.x509.AlgorithmIdentifierfind(org.bouncycastle.asn1.ASN1ObjectIdentifier digAlgOid) Find the algorithm identifier that matches with the passed in digest OID.org.bouncycastle.asn1.x509.AlgorithmIdentifierfind(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId) Find the digest algorithm identifier that matches with the passed in signature algorithm identifier.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultDigestAlgorithmIdentifierFinder
public DefaultDigestAlgorithmIdentifierFinder()
-
-
Method Details
-
find
public org.bouncycastle.asn1.x509.AlgorithmIdentifier find(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId) Description copied from interface:DigestAlgorithmIdentifierFinderFind the digest algorithm identifier that matches with the passed in signature algorithm identifier.- Specified by:
findin interfaceDigestAlgorithmIdentifierFinder- Parameters:
sigAlgId- the signature algorithm of interest.- Returns:
- an algorithm identifier for the corresponding digest.
-
find
public org.bouncycastle.asn1.x509.AlgorithmIdentifier find(org.bouncycastle.asn1.ASN1ObjectIdentifier digAlgOid) Description copied from interface:DigestAlgorithmIdentifierFinderFind the algorithm identifier that matches with the passed in digest OID.- Specified by:
findin interfaceDigestAlgorithmIdentifierFinder- Parameters:
digAlgOid- the OID of the digest algorithm of interest.- Returns:
- an algorithm identifier for the digest signature.
-
find
Description copied from interface:DigestAlgorithmIdentifierFinderFind the algorithm identifier that matches with the passed in digest name.- Specified by:
findin interfaceDigestAlgorithmIdentifierFinder- Parameters:
digAlgName- the name of the digest algorithm of interest.- Returns:
- an algorithm identifier for the digest signature.
-