Interface KemAlgorithmIdentifierFinder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.x509.AlgorithmIdentifier find​(java.lang.String kemAlgName)
      Find the KEM algorithm identifier that matches with the passed in KEM algorithm name.
      boolean hasAlgorithm​(java.lang.String kemAlgName)
      Return true if a KEM algorithm of the passed in name is recognised, false otherwise.
    • Method Detail

      • hasAlgorithm

        boolean hasAlgorithm​(java.lang.String kemAlgName)
        Return true if a KEM algorithm of the passed in name is recognised, false otherwise. Where this returns true find(String) returns an identifier; where it returns false find throws, so this is the way to test for support without catching.
        Parameters:
        kemAlgName - the name of the KEM algorithm of interest.
        Returns:
        true if the name is recognised, false otherwise.
      • find

        org.bouncycastle.asn1.x509.AlgorithmIdentifier find​(java.lang.String kemAlgName)
        Find the KEM algorithm identifier that matches with the passed in KEM algorithm name.
        Specified by:
        find in interface AlgorithmIdentifierFinder
        Parameters:
        kemAlgName - the name of the KEM algorithm of interest.
        Returns:
        an algorithm identifier for the corresponding KEM.
        Throws:
        java.lang.IllegalArgumentException - if the name is not recognised.