Code example for NoSuchAlgorithmException

Methods: toString

0
sig = Signature.getInstance(signatureAlgorithm, provider);
            } 
            catch (NoSuchAlgorithmException e)
            { 
                throw new SecurityException("exception creating signature: " + e.toString());
            } 
        } 
 
        if (random != null)
        { 
            sig.initSign(key, random);
        } 
        else 
        { 
            sig.initSign(key);
        } 
 
        if (extensions != null)
        { 
            tbsGen.setExtensions(new X509Extensions(extOrdering, extensions));