Code example for NoSuchAlgorithmException

0
        String  mode)
        throws NoSuchAlgorithmException 
    { 
        throw new NoSuchAlgorithmException("can't support mode " + mode);
    } 
 
    protected void engineSetPadding( 
        String  padding)
    throws NoSuchPaddingException 
    { 
        throw new NoSuchPaddingException("Padding " + padding + " unknown.");
    } 
 
    protected void engineInit( 
        int                     opmode,
        Key                     key,
        AlgorithmParameterSpec  params,
        SecureRandom            random)
    throws InvalidKeyException, InvalidAlgorithmParameterException 
    { 
        CipherParameters        param;