org.objectweb.cjdbc.common.net
Class SSLConfiguration

java.lang.Object
  extended byorg.objectweb.cjdbc.common.net.SSLConfiguration
All Implemented Interfaces:
java.io.Serializable

public class SSLConfiguration
extends java.lang.Object
implements java.io.Serializable

This class defines a SSLConfiguration

Version:
1.0
Author:
Marc Wick
See Also:
Serialized Form

Field Summary
private  boolean isClientAuthenticationRequired
          need client authentication
private  java.io.File keyStore
          kestore file
private  java.lang.String keyStoreKeyPassword
          key password
private  java.lang.String keyStorePassword
          keystore password
private static long serialVersionUID
           
private  java.io.File trustStore
          truststore file
private  java.lang.String trustStorePassword
          truststore password
 
Constructor Summary
SSLConfiguration()
           
 
Method Summary
static SSLConfiguration getDefaultConfig()
          create a SSLConfiguration with the java default behaviour (using System properties)
 java.io.File getKeyStore()
          Returns the keyStore value.
 java.lang.String getKeyStoreKeyPassword()
          Returns the keyStoreKeyPassword value.
 java.lang.String getKeyStorePassword()
          Returns the keyStorePassword value.
 java.io.File getTrustStore()
          Returns the trustStore value.
 java.lang.String getTrustStorePassword()
          Returns the trustStorePassword value.
 boolean isClientAuthenticationRequired()
          Returns the isClientAuthenticationRequired value.
 void setClientAuthenticationRequired(boolean isClientAuthenticationRequired)
          Sets the isClientAuthenticationRequired value.
 void setKeyStore(java.io.File keyStore)
          Sets the keyStore value.
 void setKeyStoreKeyPassword(java.lang.String keyStoreKeyPassword)
          Sets the keyStoreKeyPassword value.
 void setKeyStorePassword(java.lang.String keyStorePassword)
          Sets the keyStorePassword value.
 void setTrustStore(java.io.File trustStore)
          Sets the trustStore value.
 void setTrustStorePassword(java.lang.String trustStorePassword)
          Sets the trustStorePassword value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

keyStore

private java.io.File keyStore
kestore file


keyStorePassword

private java.lang.String keyStorePassword
keystore password


keyStoreKeyPassword

private java.lang.String keyStoreKeyPassword
key password


isClientAuthenticationRequired

private boolean isClientAuthenticationRequired
need client authentication


trustStore

private java.io.File trustStore
truststore file


trustStorePassword

private java.lang.String trustStorePassword
truststore password

Constructor Detail

SSLConfiguration

public SSLConfiguration()
Method Detail

isClientAuthenticationRequired

public boolean isClientAuthenticationRequired()
Returns the isClientAuthenticationRequired value.

Returns:
Returns the isClientAuthenticationRequired.

setClientAuthenticationRequired

public void setClientAuthenticationRequired(boolean isClientAuthenticationRequired)
Sets the isClientAuthenticationRequired value.

Parameters:
isClientAuthenticationRequired - The isClientAuthenticationRequired to set.

getKeyStore

public java.io.File getKeyStore()
Returns the keyStore value.

Returns:
Returns the keyStore.

setKeyStore

public void setKeyStore(java.io.File keyStore)
Sets the keyStore value.

Parameters:
keyStore - The keyStore to set.

getKeyStoreKeyPassword

public java.lang.String getKeyStoreKeyPassword()
Returns the keyStoreKeyPassword value.

Returns:
Returns the keyStoreKeyPassword.

setKeyStoreKeyPassword

public void setKeyStoreKeyPassword(java.lang.String keyStoreKeyPassword)
Sets the keyStoreKeyPassword value.

Parameters:
keyStoreKeyPassword - The keyStoreKeyPassword to set.

getKeyStorePassword

public java.lang.String getKeyStorePassword()
Returns the keyStorePassword value.

Returns:
Returns the keyStorePassword.

setKeyStorePassword

public void setKeyStorePassword(java.lang.String keyStorePassword)
Sets the keyStorePassword value.

Parameters:
keyStorePassword - The keyStorePassword to set.

getTrustStore

public java.io.File getTrustStore()
Returns the trustStore value.

Returns:
Returns the trustStore.

setTrustStore

public void setTrustStore(java.io.File trustStore)
Sets the trustStore value.

Parameters:
trustStore - The trustStore to set.

getTrustStorePassword

public java.lang.String getTrustStorePassword()
Returns the trustStorePassword value.

Returns:
Returns the trustStorePassword.

setTrustStorePassword

public void setTrustStorePassword(java.lang.String trustStorePassword)
Sets the trustStorePassword value.

Parameters:
trustStorePassword - The trustStorePassword to set.

getDefaultConfig

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

Returns:
config


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.