Code example for NoSuchAlgorithmException

Methods: getMessage

0
 
    private KeyFactory getFactory() {
        try { 
            return KeyFactory.getInstance(algorithmName);
        } catch (NoSuchAlgorithmException e) {
            fail(e.getMessage());
        } 
        return null; 
    } 
 
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.ADDITIONAL, 
            method = "getKeySpec", 
            args = {Key.class, Class.class}
        ), 
        @TestTargetNew( 
            level = TestLevel.ADDITIONAL, 
            method = "generatePrivate", 
            args = {KeySpec.class}
        ),