Code example for NoSuchPaddingException

0
cipher = new BufferedGenericBlockCipher(cipher.getUnderlyingCipher(), new TBCPadding());
            } 
            else 
            { 
                throw new NoSuchPaddingException("Padding " + padding + " unknown.");
            } 
        } 
    } 
 
    protected void engineInit( 
        int                     opmode,
        Key                     key,
        AlgorithmParameterSpec  params,
        SecureRandom            random)
        throws InvalidKeyException, InvalidAlgorithmParameterException 
    { 
        CipherParameters        param;
 
        this.pbeSpec = null;
        this.pbeAlgorithm = null;