org.kde.koala
Class KSSLSettings

java.lang.Object
  extended by org.kde.koala.KSSLSettings
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KSSLSettings
extends java.lang.Object
implements org.kde.qt.QtSupport

KDE SSL Settings This class contains some of the SSL settings for easy use.

Author:
George Staikos
See Also:
KSSL

Constructor Summary
  KSSLSettings()
           
  KSSLSettings(boolean readConfig)
          Construct a KSSL Settings object
protected KSSLSettings(java.lang.Class dummy)
           
 
Method Summary
 boolean autoSendX509()
          Does the user want X.509 client certificates to always be sent when possible?
 void defaults()
          Revert to default settings.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 java.lang.String getCipherList()
          Get the OpenSSL cipher list for selecting the list of ciphers to use in a connection.
 java.lang.String getEGDPath()
          Get the configured path to the entropy gathering daemon or entropy file.
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 void load()
          Load the user's settings.
 boolean promptSendX509()
          Does the user want to be prompted to send X.509 client certificates when possible?
 void save()
          Save the current settings.
 void setSSLv2(boolean enabled)
          Change the user's SSLv2 preference
 void setSSLv3(boolean enabled)
          Change the user's SSLv3 preference
 void setTLSv1(boolean enabled)
          Change the user's TLSv1 preference
 void setWarnOnEnter(boolean x)
          Change the user's warnOnEnter() setting
 void setWarnOnLeave(boolean x)
          Change the user's warnOnLeave() setting
 void setWarnOnUnencrypted(boolean x)
          Change the user's warnOnUnencrypted() setting
 boolean sslv2()
          Does the user allow SSLv2
 boolean sslv3()
          Does the user allow SSLv3
 boolean tlsv1()
          Does the user allow TLSv1
 boolean useEFile()
          Does the user want to use an entropy file?
 boolean useEGD()
          Does the user want to use the Entropy Gathering Daemon?
 boolean warnOnEnter()
          Does the user want to be warned on entering SSL mode
 boolean warnOnLeave()
          Does the user want to be warned on leaving SSL mode
 boolean warnOnMixed()
          Does the user want to be warned during mixed SSL/non-SSL mode
 boolean warnOnUnencrypted()
          Does the user want to be warned on sending unencrypted data
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSSLSettings

protected KSSLSettings(java.lang.Class dummy)

KSSLSettings

public KSSLSettings(boolean readConfig)
Construct a KSSL Settings object

Parameters:
readConfig - read in the configuration immediately if true

KSSLSettings

public KSSLSettings()
Method Detail

sslv2

public boolean sslv2()
Does the user allow SSLv2

Returns:
true if the user allows SSLv2

sslv3

public boolean sslv3()
Does the user allow SSLv3

Returns:
true if the user allows SSLv3

tlsv1

public boolean tlsv1()
Does the user allow TLSv1

Returns:
true if the user allows TLSv1

warnOnEnter

public boolean warnOnEnter()
Does the user want to be warned on entering SSL mode

Returns:
true if the user wants to be warned

setWarnOnEnter

public void setWarnOnEnter(boolean x)
Change the user's warnOnEnter() setting

Parameters:
x - true if the user is to be warned
See Also:
warnOnEnter()

warnOnUnencrypted

public boolean warnOnUnencrypted()
Does the user want to be warned on sending unencrypted data

Returns:
true if the user wants to be warned
See Also:
setWarnOnUnencrypted(boolean)

setWarnOnUnencrypted

public void setWarnOnUnencrypted(boolean x)
Change the user's warnOnUnencrypted() setting

Parameters:
x - true if the user is to be warned
See Also:
warnOnUnencrypted()

warnOnLeave

public boolean warnOnLeave()
Does the user want to be warned on leaving SSL mode

Returns:
true if the user wants to be warned

setWarnOnLeave

public void setWarnOnLeave(boolean x)
Change the user's warnOnLeave() setting

Parameters:
x - true if the user is to be warned
See Also:
warnOnLeave()

warnOnMixed

public boolean warnOnMixed()
Does the user want to be warned during mixed SSL/non-SSL mode

Returns:
true if the user wants to be warned

useEGD

public boolean useEGD()
Does the user want to use the Entropy Gathering Daemon?

Returns:
true if the user wants to use EGD

useEFile

public boolean useEFile()
Does the user want to use an entropy file?

Returns:
true if the user wants to use an entropy file

setTLSv1

public void setTLSv1(boolean enabled)
Change the user's TLSv1 preference

Parameters:
enabled - true if TLSv1 is enabled

setSSLv2

public void setSSLv2(boolean enabled)
Change the user's SSLv2 preference

Parameters:
enabled - true if SSLv2 is enabled

setSSLv3

public void setSSLv3(boolean enabled)
Change the user's SSLv3 preference

Parameters:
enabled - true if SSLv3 is enabled

autoSendX509

public boolean autoSendX509()
Does the user want X.509 client certificates to always be sent when possible?

Returns:
true if the user always wants a certificate sent

promptSendX509

public boolean promptSendX509()
Does the user want to be prompted to send X.509 client certificates when possible?

Returns:
true if the user wants to be prompted

getCipherList

public java.lang.String getCipherList()
Get the OpenSSL cipher list for selecting the list of ciphers to use in a connection.

Returns:
the cipher list

getEGDPath

public java.lang.String getEGDPath()
Get the configured path to the entropy gathering daemon or entropy file.

Returns:
the path

load

public void load()
Load the user's settings.


defaults

public void defaults()
Revert to default settings.


save

public void save()
Save the current settings.


finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?