Code example for ZipException

	private AESUtilsJCA utils;
	public void init(String password, int keySize, byte[] salt, byte[] passwordVerifier) throws ZipException {
		this.utils = new AESUtilsJCA(password, keySize, salt);
		if (!Arrays.equals(passwordVerifier, utils.getPasswordVerifier()))
			throw new ZipException("Password verification failed");
	public void decrypt(byte[] in, int length) {
		utils.authUpdate(in, length);
		utils.cryptUpdate(in, length);
	public byte[] getFinalAuthentication() { 
		return utils.getFinalAuthentifier();
Connect your IDE to all the code out there  Get Codota for Java