summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KSSLSettings.java
blob: fde56318f4d51d112d0ae31cce07054e5f7d6cf9 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;

/**

 KDE SSL Settings
 This class contains some of the SSL settings for easy use.
		@author George Staikos <staikos@kde.org>

		@short KDE SSL Settings.
		@see KSSL

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

	/**
		  Construct a KSSL Settings object
			@param readConfig read in the configuration immediately if true
			 		@short     Construct a KSSL Settings object
	*/
	public KSSLSettings(boolean readConfig) {
		newKSSLSettings(readConfig);
	}
	private native void newKSSLSettings(boolean readConfig);
	public KSSLSettings() {
		newKSSLSettings();
	}
	private native void newKSSLSettings();
	/**
		  Does the user allow SSLv2
				@return true if the user allows SSLv2

		@short     Does the user allow SSLv2
	*/
	public native boolean sslv2();
	/**
		  Does the user allow SSLv3
				@return true if the user allows SSLv3

		@short     Does the user allow SSLv3
	*/
	public native boolean sslv3();
	/**
		  Does the user allow TLSv1
				@return true if the user allows TLSv1

		@short     Does the user allow TLSv1
	*/
	public native boolean tlsv1();
	/**
		  Does the user want to be warned on entering SSL mode
				@return true if the user wants to be warned

		@short     Does the user want to be warned on entering SSL mode
	*/
	public native boolean warnOnEnter();
	/**
		  Change the user's warnOnEnter() setting
			@param x true if the user is to be warned
				@short     Change the user's warnOnEnter() setting
		@see #warnOnEnter
	*/
	public native void setWarnOnEnter(boolean x);
	/**
		  Does the user want to be warned on sending unencrypted data
				@return true if the user wants to be warned

		@short     Does the user want to be warned on sending unencrypted data
		@see #setWarnOnUnencrypted
	*/
	public native boolean warnOnUnencrypted();
	/**
		  Change the user's warnOnUnencrypted() setting
			@param x true if the user is to be warned
				@short     Change the user's warnOnUnencrypted() setting
		@see #warnOnUnencrypted
	*/
	public native void setWarnOnUnencrypted(boolean x);
	/**
		  Does the user want to be warned on leaving SSL mode
				@return true if the user wants to be warned

		@short     Does the user want to be warned on leaving SSL mode
	*/
	public native boolean warnOnLeave();
	/**
		  Change the user's warnOnLeave() setting
			@param x true if the user is to be warned
				@short     Change the user's warnOnLeave() setting
		@see #warnOnLeave
	*/
	public native void setWarnOnLeave(boolean x);
	/**
		  Does the user want to be warned during mixed SSL/non-SSL mode
				@return true if the user wants to be warned

		@short     Does the user want to be warned during mixed SSL/non-SSL mode
	*/
	public native boolean warnOnMixed();
	/**
		  Does the user want to use the Entropy Gathering Daemon?
				@return true if the user wants to use EGD

		@short     Does the user want to use the Entropy Gathering Daemon?
	*/
	public native boolean useEGD();
	/**
		  Does the user want to use an entropy file?
				@return true if the user wants to use an entropy file

		@short     Does the user want to use an entropy file?
	*/
	public native boolean useEFile();
	/**
		  Change the user's TLSv1 preference
			@param enabled true if TLSv1 is enabled
			 		@short     Change the user's TLSv1 preference
	*/
	public native void setTLSv1(boolean enabled);
	/**
		  Change the user's SSLv2 preference
			@param enabled true if SSLv2 is enabled
			 		@short     Change the user's SSLv2 preference
	*/
	public native void setSSLv2(boolean enabled);
	/**
		  Change the user's SSLv3 preference
			@param enabled true if SSLv3 is enabled
			 		@short     Change the user's SSLv3 preference
	*/
	public native void setSSLv3(boolean enabled);
	/**
		  Does the user want X.509 client certificates to always be sent when
		  possible?
				@return true if the user always wants a certificate sent

		@short     Does the user want X.
	*/
	public native boolean autoSendX509();
	/**
		  Does the user want to be prompted to send X.509 client certificates
		  when possible?
				@return true if the user wants to be prompted

		@short     Does the user want to be prompted to send X.
	*/
	public native boolean promptSendX509();
	/**
		  Get the OpenSSL cipher list for selecting the list of ciphers to
		  use in a connection.
				@return the cipher list

		@short     Get the OpenSSL cipher list for selecting the list of ciphers to   use in a connection.
	*/
	public native String getCipherList();
	/**
		  Get the configured path to the entropy gathering daemon or entropy
		  file.
				@return the path

		@short     Get the configured path to the entropy gathering daemon or entropy   file.
	*/
	public native String getEGDPath();
	/**
		  Load the user's settings.
			 		@short     Load the user's settings.
	*/
	public native void load();
	/**
		  Revert to default settings.
			 		@short     Revert to default settings.
	*/
	public native void defaults();
	/**
		  Save the current settings.
			 		@short     Save the current settings.
	*/
	public native void save();
	/** 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();
}