summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KSSLKeyGen.java
blob: e706ac924e12c58c77b21a03e2074f6004ddba68 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import java.util.ArrayList;
import org.kde.qt.TQWidget;

/**

 KDE Key Generation dialog
 This is used to display a key generation dialog for cases such as the
 html \<keygen\> tag.  It also does the certificate signing request generation.
		@author George Staikos <staikos@kde.org>

		@short KDE Key Generation Dialog.
		@see KSSL
		@see KSSLCertificate
		@see KSSLPKCS12

*/
public class KSSLKeyGen extends KWizard  {
	protected KSSLKeyGen(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		  Construct a keygen dialog.
			@param parent the parent widget
			@param name the internal name of this instance
			@param modal true if the dialog should be modal
			 		@short     Construct a keygen dialog.
	*/
	public KSSLKeyGen(TQWidget parent, String name, boolean modal) {
		super((Class) null);
		newKSSLKeyGen(parent,name,modal);
	}
	private native void newKSSLKeyGen(TQWidget parent, String name, boolean modal);
	public KSSLKeyGen(TQWidget parent, String name) {
		super((Class) null);
		newKSSLKeyGen(parent,name);
	}
	private native void newKSSLKeyGen(TQWidget parent, String name);
	public KSSLKeyGen(TQWidget parent) {
		super((Class) null);
		newKSSLKeyGen(parent);
	}
	private native void newKSSLKeyGen(TQWidget parent);
	public KSSLKeyGen() {
		super((Class) null);
		newKSSLKeyGen();
	}
	private native void newKSSLKeyGen();
	/**	
		  Generate the certificate signing request.
			@param name the name for the certificate
			@param pass the password for the request
			@param bits the bitsize for the key
			@param e the value of the "e" parameter in RSA
				@return 0 on success, non-zero on error
	 
		@short     Generate the certificate signing request.
	*/
	public native int generateCSR(String name, String pass, int bits, int e);
	public native int generateCSR(String name, String pass, int bits);
	/**	
		  Set the key size.
			@param idx an index into supportedKeySizes()
			 		@short     Set the key size.
	*/
	public native void setKeySize(int idx);
	/**	
		  List the supported key sizes.
				@return the supported key sizes
	 
		@short     List the supported key sizes.
	*/
	public static native ArrayList supportedKeySizes();
	/** 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();
}