org.kde.koala
public class KSSL extends Object implements QtSupport
See Also: KExtendedSocket TCPSlaveBase
UNKNOWN: KDE SSL Class.
Constructor Summary | |
---|---|
protected | KSSL(Class dummy) |
KSSL(boolean init)
Construct a KSSL object | |
KSSL() |
Method Summary | |
---|---|
int | accept(int sock)
Connect the SSL session to the remote host using the provided
socket descriptor. |
void | close()
Close the SSL session. |
int | connect(int sock)
Connect the SSL session to the remote host using the provided
socket descriptor. |
KSSLConnectionInfo | connectionInfo()
Obtain a reference to the connection information. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
static boolean | doesSSLWork()
Determine if SSL is available and works. |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | initialize()
Initialize OpenSSL.
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
KSSLPeerInfo | peerInfo()
Obtain a reference to the information about the peer. |
int | pending()
Determine if data is waiting to be read. |
boolean | reconfig()
Trigger a reread of KSSL configuration and reInitialize() KSSL.
|
boolean | reInitialize()
Reinitialize OpenSSL.
|
boolean | reusingSession()
Determine if we are currently reusing an SSL session ID. |
int | seedWithEGD()
This will reseed the pseudo-random number generator with the EGD
(entropy gathering daemon) if the EGD is configured and enabled.
|
KSSLSession | session()
Obtain a pointer to the session information. |
void | setAutoReconfig(boolean ar)
Enable or disable automatic reconfiguration on initialize(). |
boolean | setClientCertificate(KSSLPKCS12 pkcs)
Use this to set the certificate to send to the server.
|
void | setPeerHost(String realHost)
Set the peer hostname to be used for certificate verification. |
void | setPeerHost() |
boolean | setSession(KSSLSession session)
Set an SSL session to use. |
boolean | setSettings(KSSLSettings settings)
Set a new KSSLSettings instance as the settings. |
KSSLSettings | settings()
One is built by the constructor, so this will only return a NULL
pointer if you set one with setSettings(). |
boolean | TLSInit()
This is used for applicationss which do STARTTLS or something
similar. |
Parameters: init Set this to false if you do not want this class to immediately initialize OpenSSL.
UNKNOWN: Construct a KSSL object
Parameters: sock the socket descriptor to connect with. This must be an already connected socket.
Returns: 1 on success, 0 on error setting the file descriptor, -1 on other error.
UNKNOWN: Connect the SSL session to the remote host using the provided socket descriptor.
UNKNOWN: Close the SSL session.
Parameters: sock the socket descriptor to connect with. This must be an already connected socket.
Returns: 1 on success, 0 on error setting the file descriptor, -1 on other error.
UNKNOWN: Connect the SSL session to the remote host using the provided socket descriptor.
Returns: a reference to the connection information, valid after connected
See Also: KSSLConnectionInfo
UNKNOWN: Obtain a reference to the connection information.
Returns: true is SSL is available and usable
UNKNOWN: Determine if SSL is available and works.
Returns: true on success
See Also: KSSL
UNKNOWN: Initialize OpenSSL.
Returns: a reference to the peer information, valid after connected
See Also: KSSLPeerInfo
UNKNOWN: Obtain a reference to the information about the peer.
Returns: -1 on error, 0 if no data is waiting, > 0 if data is waiting.
UNKNOWN: Determine if data is waiting to be read.
Returns: true on successful reinitalizations
See Also: KSSL
UNKNOWN: Trigger a reread of KSSL configuration and reInitialize() KSSL.
Returns: true on success
See Also: KSSL
UNKNOWN: Reinitialize OpenSSL.
Returns: true if we are reusing a session ID.
UNKNOWN: Determine if we are currently reusing an SSL session ID.
Returns: 0 on success
UNKNOWN: This will reseed the pseudo-random number generator with the EGD (entropy gathering daemon) if the EGD is configured and enabled.
Returns: a pointer to the session information. This is valid after connected, while connected. It is deleted by the KSSL object which returns it. May return 0L if no valid session exists.
See Also: KSSLSession
UNKNOWN: Obtain a pointer to the session information.
Parameters: ar Set to false in order to disable auto-reloading of the KSSL configuration during initialize(). By default, KSSL will read its configuration on initialize(). You might want to disable this for performance reasons.
UNKNOWN: Enable or disable automatic reconfiguration on initialize().
Parameters: pkcs the valid PKCS#12 object to send.
Returns: true if the certificate was properly set to the session.
UNKNOWN: Use this to set the certificate to send to the server.
Parameters: realHost the remote hostname as the user believes to be connecting to
UNKNOWN: Set the peer hostname to be used for certificate verification.
Parameters: session A valid session to reuse. If null, it will clear the session ID in memory.
Returns: true on success
UNKNOWN: Set an SSL session to use.
Parameters: settings A new, valid settings object.
Returns: true on success
UNKNOWN: Set a new KSSLSettings instance as the settings.
Returns: the current settings instance
UNKNOWN: One is built by the constructor, so this will only return a NULL pointer if you set one with setSettings().
Returns: true if TLS is successfully initialized
UNKNOWN: This is used for applicationss which do STARTTLS or something similar.