org.apache.wvcm.store.webdav.tls
Class TLSProperties

java.lang.Object
  extended by org.apache.wvcm.store.webdav.tls.TLSProperties

public class TLSProperties
extends java.lang.Object


Field Summary
static java.lang.String CUSTOM_KEYSTORE
           
static java.lang.String CUSTOM_KEYSTORE_PASSWORD
           
static java.lang.String CUSTOM_KEYSTORE_TYPE
           
static java.lang.String CUSTOM_TRUSTSTORE
           
static java.lang.String CUSTOM_TRUSTSTORE_PASSWORD
           
static java.lang.String CUSTOM_TRUSTSTORE_TYPE
           
 
Constructor Summary
TLSProperties()
          Constructor for supporting default TLS properties (javax.net.ssl.xxx).
TLSProperties(java.util.Properties tlsProperties)
          Constructor for supporting custom TLS properties.
 
Method Summary
 java.security.KeyStore getKeyStore()
          Return the keystore.
 java.lang.String getKeyStorePassword()
          Return keystore password.
 java.security.KeyStore getTrustStore()
          Return truststore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOM_KEYSTORE

public static final java.lang.String CUSTOM_KEYSTORE
See Also:
Constant Field Values

CUSTOM_KEYSTORE_PASSWORD

public static final java.lang.String CUSTOM_KEYSTORE_PASSWORD
See Also:
Constant Field Values

CUSTOM_KEYSTORE_TYPE

public static final java.lang.String CUSTOM_KEYSTORE_TYPE
See Also:
Constant Field Values

CUSTOM_TRUSTSTORE

public static final java.lang.String CUSTOM_TRUSTSTORE
See Also:
Constant Field Values

CUSTOM_TRUSTSTORE_PASSWORD

public static final java.lang.String CUSTOM_TRUSTSTORE_PASSWORD
See Also:
Constant Field Values

CUSTOM_TRUSTSTORE_TYPE

public static final java.lang.String CUSTOM_TRUSTSTORE_TYPE
See Also:
Constant Field Values
Constructor Detail

TLSProperties

public TLSProperties(java.util.Properties tlsProperties)
              throws WvcmException
Constructor for supporting custom TLS properties. If a custom property is not specified then the default ones (javax.net.ssl.xxx) are used.

Throws:
WvcmException - if there are problems with the TLS properties

TLSProperties

public TLSProperties()
              throws WvcmException
Constructor for supporting default TLS properties (javax.net.ssl.xxx).

Throws:
WvcmException - if there are problems with the TLS properties
Method Detail

getKeyStore

public java.security.KeyStore getKeyStore()
Return the keystore. If no keystore is given then 1-way SSL is assumed.

Returns:
the keystore (null: 1-way SSL)

getKeyStorePassword

public java.lang.String getKeyStorePassword()
Return keystore password.


getTrustStore

public java.security.KeyStore getTrustStore()
Return truststore.



Copyright (c) 2003 - Apache Software Foundation