Java 8 InvalidAlgorithmParameterException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 InvalidAlgorithmParameterException class.

This code example shows how to use the following methods:
        protected void engineInit( 
            AlgorithmParameterSpec  genParamSpec,
            SecureRandom            random)
            throws InvalidAlgorithmParameterException 
        { 
            throw new InvalidAlgorithmParameterException("No supported AlgorithmParameterSpec for DSA parameter generation.");
        } 
 
        protected AlgorithmParameters engineGenerateParameters()
        { 
            DSAParametersGenerator pGen = new DSAParametersGenerator();
 
            if (random != null)
            { 
                pGen.init(strength, 20, random);
            } 
            else 
            { 
                pGen.init(strength, 20, new SecureRandom());
            } 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getMessage
        { 
            engineInit(opmode, key, (AlgorithmParameterSpec)null, random);
        } 
        catch (InvalidAlgorithmParameterException e)
        { 
            throw new IllegalArgumentException(e.getMessage());
        } 
    } 
 
    protected byte[] engineUpdate( 
        byte[]  input,
        int     inputOffset,
        int     inputLen)
    { 
        throw new RuntimeException("not supported for wrapping");
    } 
 
    protected int engineUpdate( 
        byte[]  input,
        int     inputOffset,
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
            SecureRandom            random)
            throws InvalidAlgorithmParameterException 
        { 
            if (!(params instanceof RSAKeyGenParameterSpec))
            { 
                throw new InvalidAlgorithmParameterException("parameter object not a RSAKeyGenParameterSpec");
            } 
            RSAKeyGenParameterSpec     rsaParams = (RSAKeyGenParameterSpec)params;
 
            param = new RSAKeyGenerationParameters(
                            rsaParams.getPublicExponent(),
                            random, rsaParams.getKeysize(), defaultTests);
 
            engine.init(param);
        } 
 
        public KeyPair generateKeyPair()
        { 
            AsymmetricCipherKeyPair     pair = engine.generateKeyPair();
            RSAKeyParameters            pub = (RSAKeyParameters)pair.getPublic();
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getMessage
        { 
            throw new PGPException("bad padding: " + e.getMessage(), e);
        } 
        catch (InvalidAlgorithmParameterException e)
        { 
            throw new PGPException("IV invalid: " + e.getMessage(), e);
        } 
        catch (InvalidKeyException e)
        { 
            throw new PGPException("key invalid: " + e.getMessage(), e);
        } 
    } 
} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
    protected Object[] getData() { 
        Exception cause = new Exception(msgs[1]); 
        InvalidAlgorithmParameterException dExc = new InvalidAlgorithmParameterException(msgs[0], cause); 
        String msg = null; 
        Throwable th = null; 
        return new Object[] { new InvalidAlgorithmParameterException(), new InvalidAlgorithmParameterException(msg), 
                new InvalidAlgorithmParameterException(msgs[1]), 
                new InvalidAlgorithmParameterException(new Throwable()), new InvalidAlgorithmParameterException(th), 
                new InvalidAlgorithmParameterException(msgs[1], dExc) }; 
    } 
 
} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related Java 8 InvalidAlgorithmParameterException Questions & Answers: