Code example for AlgorithmParameters

Methods: init

        throws IOException
        // we try ASN.1 explicitly first just in case and then role back to the default. 
            params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1");
        catch (Exception ex)
     * Attempt to find a standard JCA name for the digest represented by the past in OID. 
     * @param digestAlgOID the OID of the digest algorithm of interest. 
     * @return a string representing the standard name - the OID as a string if none available. 
    public static String getDigestAlgName(