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

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 KDE SSL Peer Data
 This class contains data about the peer of an SSL connection.
		@author George Staikos <staikos@kde.org>

		@short KDE SSL Peer Data.
		@see KSSL

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

	/**	
		  Get a reference to the peer's certificate
				@return a reference to the peer's certificate

		@short     Get a reference to the peer's certificate 
		@see KSSLCertificate
	*/
	public native KSSLCertificate getPeerCertificate();
	/**	
		  Determine if the peer's certificate matches the address set with
		  setPeerHost().  Note that this is a match in the "https"
		  sense, taking into account, for instance,  wildcards.
				@return true if it matches

		@short     Determine if the peer's certificate matches the address set with   setPeerHost().
		@see #setPeerHost
	*/
	public native boolean certMatchesAddress();
	/**	
		  Determine if the given "common name" matches the address set with
		  setPeerHost().  Note that this is a match in the "https"
		  sense, taking into account, for instance,  wildcards.
				@return true if it matches

		@short     Determine if the given "common name" matches the address set with   setPeerHost().
		@see #setPeerHost
	*/
	public native boolean cnMatchesAddress(String cn);
	/**	
		  Set the host that we are connected to.  This is generally set by
		  KSSL, and should be exactly what the user -thinks- he is connected
		  to.  (for instance, the host name in the url)
			@param host the hostname
			 		@short     Set the host that we are connected to.
	*/
	public native void setPeerHost(String host);
	public native void setPeerHost();
	/**	
		  Returns the host we are connected to.
			 		@short     Returns the host we are connected to.
	*/
	public native String peerHost();
	/**	
		  Clear out the host name.
			 		@short     Clear out the host name.
	*/
	public native void reset();
	public KSSLPeerInfo() {
		newKSSLPeerInfo();
	}
	private native void newKSSLPeerInfo();
	/** 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();
}
