//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;
import java.util.Calendar;
import java.util.ArrayList;

/**
*/
public class KSSLCertificateCache implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KSSLCertificateCache(Class dummy){}

	public static final int Unknown = 0;
	public static final int Reject = 1;
	public static final int Accept = 2;
	public static final int Prompt = 3;
	public static final int Ambiguous = 4;

	public KSSLCertificateCache() {
		newKSSLCertificateCache();
	}
	private native void newKSSLCertificateCache();
	public native void addCertificate(KSSLCertificate cert, int policy, boolean permanent);
	public native void addCertificate(KSSLCertificate cert, int policy);
	public native int getPolicyByCN(StringBuffer cn);
	public native int getPolicyByCertificate(KSSLCertificate cert);
	public native boolean seenCN(StringBuffer cn);
	public native boolean seenCertificate(KSSLCertificate cert);
	public native boolean removeByCN(StringBuffer cn);
	public native boolean removeByCertificate(KSSLCertificate cert);
	public native boolean isPermanent(KSSLCertificate cert);
	public native boolean modifyByCN(StringBuffer cn, int policy, boolean permanent, Calendar expires);
	public native boolean modifyByCertificate(KSSLCertificate cert, int policy, boolean permanent, Calendar expires);
	public native ArrayList getHostList(KSSLCertificate cert);
	public native boolean addHost(KSSLCertificate cert, StringBuffer host);
	public native boolean removeHost(KSSLCertificate cert, StringBuffer host);
	public native ArrayList getKDEKeyByEmail(String email);
	public native KSSLCertificate getCertByMD5Digest(String key);
	public native void reload();
	public native void saveToDisk();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
