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

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
    find(String algorithmName)
    Find the algorithm identifier that matches with the passed in algorithm name.
  • Method Details

    • find

      org.bouncycastle.asn1.x509.AlgorithmIdentifier find(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:
      IllegalArgumentException - if the name is not recognised.