summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KSSLPeerInfo.java
blob: 114c50efa569af67e08132b8bf66da059b518b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//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();
}