Code example for NoSuchPaddingException

0
        String  padding)
    throws NoSuchPaddingException 
    { 
        if (!padding.equalsIgnoreCase("NoPadding"))
        { 
            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;