Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.net.SSLConfiguration Class Reference

List of all members.

Public Member Functions

boolean isClientAuthenticationRequired ()
void setClientAuthenticationRequired (boolean isClientAuthenticationRequired)
File getKeyStore ()
void setKeyStore (File keyStore)
String getKeyStoreKeyPassword ()
void setKeyStoreKeyPassword (String keyStoreKeyPassword)
String getKeyStorePassword ()
void setKeyStorePassword (String keyStorePassword)
File getTrustStore ()
void setTrustStore (File trustStore)
String getTrustStorePassword ()
void setTrustStorePassword (String trustStorePassword)

Static Public Member Functions

SSLConfiguration getDefaultConfig ()

Detailed Description

This class defines a SSLConfiguration

Author:
Marc Wick
Version:
1.0

Definition at line 36 of file SSLConfiguration.java.


Member Function Documentation

SSLConfiguration org.objectweb.cjdbc.common.net.SSLConfiguration.getDefaultConfig  )  [static]
 

create a SSLConfiguration with the java default behaviour (using System properties)

Returns:
config

Definition at line 191 of file SSLConfiguration.java.

References org.objectweb.cjdbc.common.net.SSLConfiguration.keyStore, org.objectweb.cjdbc.common.net.SSLConfiguration.keyStoreKeyPassword, org.objectweb.cjdbc.common.net.SSLConfiguration.keyStorePassword, org.objectweb.cjdbc.common.net.SSLConfiguration.trustStore, and org.objectweb.cjdbc.common.net.SSLConfiguration.trustStorePassword.

Referenced by org.objectweb.cjdbc.driver.Driver.connect().

00192   {
00193     SSLConfiguration config = new SSLConfiguration();
00194     config.keyStore = new File(System.getProperty("javax.net.ssl.keyStore"));
00195     config.keyStorePassword = System
00196         .getProperty("javax.net.ssl.keyStorePassword");
00197     config.keyStoreKeyPassword = System
00198         .getProperty("javax.net.ssl.keyStorePassword");
00199     config.trustStore = new File(System.getProperty("javax.net.ssl.trustStore"));
00200     config.trustStorePassword = System
00201         .getProperty("javax.net.ssl.trustStorePassword");
00202     return config;
00203   }

File org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStore  ) 
 

Returns the keyStore value.

Returns:
Returns the keyStore.

Definition at line 82 of file SSLConfiguration.java.

Referenced by org.objectweb.cjdbc.common.net.SSLConfiguration.getTrustStore().

00083   {
00084     return keyStore;
00085   }

String org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStoreKeyPassword  ) 
 

Returns the keyStoreKeyPassword value.

Returns:
Returns the keyStoreKeyPassword.

Definition at line 102 of file SSLConfiguration.java.

References org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStorePassword().

00103   {
00104     if (keyStoreKeyPassword != null)
00105       return keyStoreKeyPassword;
00106     return getKeyStorePassword();
00107   }

String org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStorePassword  ) 
 

Returns the keyStorePassword value.

Returns:
Returns the keyStorePassword.

Definition at line 124 of file SSLConfiguration.java.

Referenced by org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStoreKeyPassword(), and org.objectweb.cjdbc.common.net.SSLConfiguration.getTrustStorePassword().

00125   {
00126     return keyStorePassword;
00127   }

File org.objectweb.cjdbc.common.net.SSLConfiguration.getTrustStore  ) 
 

Returns the trustStore value.

Returns:
Returns the trustStore.

Definition at line 144 of file SSLConfiguration.java.

References org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStore().

00145   {
00146     if (trustStore != null)
00147       return trustStore;
00148 
00149     return getKeyStore();
00150   }

String org.objectweb.cjdbc.common.net.SSLConfiguration.getTrustStorePassword  ) 
 

Returns the trustStorePassword value.

Returns:
Returns the trustStorePassword.

Definition at line 167 of file SSLConfiguration.java.

References org.objectweb.cjdbc.common.net.SSLConfiguration.getKeyStorePassword().

00168   {
00169     if (trustStorePassword != null)
00170       return trustStorePassword;
00171 
00172     return getKeyStorePassword();
00173   }

boolean org.objectweb.cjdbc.common.net.SSLConfiguration.isClientAuthenticationRequired  ) 
 

Returns the isClientAuthenticationRequired value.

Returns:
Returns the isClientAuthenticationRequired.

Definition at line 60 of file SSLConfiguration.java.

00061   {
00062     return isClientAuthenticationRequired;
00063   }

void org.objectweb.cjdbc.common.net.SSLConfiguration.setClientAuthenticationRequired boolean  isClientAuthenticationRequired  ) 
 

Sets the isClientAuthenticationRequired value.

Parameters:
isClientAuthenticationRequired The isClientAuthenticationRequired to set.

Definition at line 71 of file SSLConfiguration.java.

00073   {
00074     this.isClientAuthenticationRequired = isClientAuthenticationRequired;
00075   }

void org.objectweb.cjdbc.common.net.SSLConfiguration.setKeyStore File  keyStore  ) 
 

Sets the keyStore value.

Parameters:
keyStore The keyStore to set.

Definition at line 92 of file SSLConfiguration.java.

00093   {
00094     this.keyStore = keyStore;
00095   }

void org.objectweb.cjdbc.common.net.SSLConfiguration.setKeyStoreKeyPassword String  keyStoreKeyPassword  ) 
 

Sets the keyStoreKeyPassword value.

Parameters:
keyStoreKeyPassword The keyStoreKeyPassword to set.

Definition at line 114 of file SSLConfiguration.java.

00115   {
00116     this.keyStoreKeyPassword = keyStoreKeyPassword;
00117   }

void org.objectweb.cjdbc.common.net.SSLConfiguration.setKeyStorePassword String  keyStorePassword  ) 
 

Sets the keyStorePassword value.

Parameters:
keyStorePassword The keyStorePassword to set.

Definition at line 134 of file SSLConfiguration.java.

00135   {
00136     this.keyStorePassword = keyStorePassword;
00137   }

void org.objectweb.cjdbc.common.net.SSLConfiguration.setTrustStore File  trustStore  ) 
 

Sets the trustStore value.

Parameters:
trustStore The trustStore to set.

Definition at line 157 of file SSLConfiguration.java.

00158   {
00159     this.trustStore = trustStore;
00160   }

void org.objectweb.cjdbc.common.net.SSLConfiguration.setTrustStorePassword String  trustStorePassword  ) 
 

Sets the trustStorePassword value.

Parameters:
trustStorePassword The trustStorePassword to set.

Definition at line 180 of file SSLConfiguration.java.

00181   {
00182     this.trustStorePassword = trustStorePassword;
00183   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:02 2005 for C-JDBC by  doxygen 1.3.9.1