Bouncy Castle Cryptography Library 1.87

org.bouncycastle.operator
Interface AlgorithmIdentifierFinder

All Known Subinterfaces:
DigestAlgorithmIdentifierFinder, KemAlgorithmIdentifierFinder, SignatureAlgorithmIdentifierFinder
All Known Implementing Classes:
DefaultDigestAlgorithmIdentifierFinder, DefaultKemAlgorithmIdentifierFinder, DefaultSignatureAlgorithmIdentifierFinder

public interface AlgorithmIdentifierFinder

Base interface for the finders that turn an algorithm name into the AlgorithmIdentifier - algorithm OID plus any algorithm-specific parameters - naming it in an ASN.1 structure.

Implementations match names without regard to case, and throw IllegalArgumentException for a name they do not recognise rather than returning null. MacAlgorithmIdentifierFinder returns null instead, and so is deliberately not part of this hierarchy.


Method Summary
 org.bouncycastle.asn1.x509.AlgorithmIdentifier find(java.lang.String algorithmName)
          Find the algorithm identifier that matches with the passed in algorithm name.
 

Method Detail

find

public 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.

Bouncy Castle Cryptography Library 1.87