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

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import java.util.ArrayList;
import org.kde.qt.QWidget;

/**

 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 QMetaObject 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(QWidget parent, String name, boolean modal) {
		super((Class) null);
		newKSSLKeyGen(parent,name,modal);
	}
	private native void newKSSLKeyGen(QWidget parent, String name, boolean modal);
	public KSSLKeyGen(QWidget parent, String name) {
		super((Class) null);
		newKSSLKeyGen(parent,name);
	}
	private native void newKSSLKeyGen(QWidget parent, String name);
	public KSSLKeyGen(QWidget parent) {
		super((Class) null);
		newKSSLKeyGen(parent);
	}
	private native void newKSSLKeyGen(QWidget 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();
}
