Package org.bouncycastle.operator
Interface AlgorithmIdentifierFinder
-
- All Known Subinterfaces:
DigestAlgorithmIdentifierFinder,KemAlgorithmIdentifierFinder,SignatureAlgorithmIdentifierFinder
- All Known Implementing Classes:
DefaultDigestAlgorithmIdentifierFinder,DefaultKemAlgorithmIdentifierFinder,DefaultSignatureAlgorithmIdentifierFinder
public interface AlgorithmIdentifierFinderBase interface for the finders that turn an algorithm name into theAlgorithmIdentifier- algorithm OID plus any algorithm-specific parameters - naming it in an ASN.1 structure.Implementations match names without regard to case, and throw
IllegalArgumentExceptionfor a name they do not recognise rather than returning null.MacAlgorithmIdentifierFinderreturns null instead, and so is deliberately not part of this hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifierfind(java.lang.String algorithmName)Find the algorithm identifier that matches with the passed in algorithm name.
-
-
-
Method Detail
-
find
org.bouncycastle.asn1.x509.AlgorithmIdentifier find(java.lang.String algorithmName)
Find the algorithm identifier that matches with the passed in algorithm name.- Parameters:
algorithmName- the name of the algorithm of interest.- Returns:
- an algorithm identifier for the corresponding algorithm.
- Throws:
java.lang.IllegalArgumentException- if the name is not recognised.
-
-