org.apache.xmlrpc.secure
Class SecurityTool

java.lang.Object
  extended by org.apache.xmlrpc.secure.SecurityTool
All Implemented Interfaces:
SecurityConstants

public class SecurityTool
extends java.lang.Object
implements SecurityConstants


Field Summary
private static java.lang.String keyManagerType
          The type of key manager to be used by the secure web server.
private static java.lang.String keyStore
          Path to the key store that will be used by the secure web server.
private static java.lang.String keyStorePassword
          Password used to access the key store.
private static java.lang.String keyStoreType
          Format to be used for the key store.
private static java.lang.String protocolHandlerPackages
          The protocol handler package to use for the secure web server.
private static java.lang.String securityProtocol
          The security protocol to be used by the secure web server.
protected static java.lang.String securityProviderClass
          Class name of the security provider to be used by the secure web server.
private static java.lang.String trustStore
          Path to the key store that will be used by the secure web server.
private static java.lang.String trustStorePassword
          Password used to access the key store.
private static java.lang.String trustStoreType
          Format to be used for the key store.
 
Fields inherited from interface org.apache.xmlrpc.secure.SecurityConstants
DEFAULT_KEY_MANAGER_TYPE, DEFAULT_KEY_STORE, DEFAULT_KEY_STORE_PASSWORD, DEFAULT_KEY_STORE_TYPE, DEFAULT_PROTOCOL_HANDLER_PACKAGES, DEFAULT_SECURITY_PROTOCOL, DEFAULT_SECURITY_PROVIDER_CLASS, DEFAULT_TRUST_STORE, DEFAULT_TRUST_STORE_PASSWORD, DEFAULT_TRUST_STORE_TYPE, KEY_MANAGER_TYPE, KEY_STORE, KEY_STORE_PASSWORD, KEY_STORE_TYPE, PROTOCOL_HANDLER_PACKAGES, SECURITY_PROTOCOL, SECURITY_PROVIDER_CLASS, TRUST_MANAGER_TYPE, TRUST_STORE, TRUST_STORE_PASSWORD, TRUST_STORE_TYPE
 
Constructor Summary
SecurityTool()
           
 
Method Summary
static java.lang.String getKeyManagerType()
          Get the key manager type.
static java.lang.String getKeyStore()
          Get the key store location.
static java.lang.String getKeyStorePassword()
          Get the key store password.
static java.lang.String getKeyStoreType()
          Get the key store format.
static java.lang.String getProtocolHandlerPackages()
          Get the protocol handler packages.
static java.lang.String getSecurityProtocol()
          Get the security protocol.
static java.lang.String getSecurityProviderClass()
          Get the security provider class.
static java.lang.String getTrustStore()
          Get the key store location.
static java.lang.String getTrustStorePassword()
          Get the trust store password.
static java.lang.String getTrustStoreType()
          Get the key store format.
static void setKeyManagerType(java.lang.String x)
          Set the key manager type.
static void setKeyStore(java.lang.String x)
          Set the key store location.
static void setKeyStorePassword(java.lang.String x)
          Set the key store password.
static void setKeyStoreType(java.lang.String x)
          Set the key store format.
static void setProtocolHandlerPackages(java.lang.String x)
          Set the protocol handler packages.
static void setSecurityProtocol(java.lang.String x)
          Set the security protocol.
static void setSecurityProviderClass(java.lang.String x)
          Set the security provider class.
static void setTrustStore(java.lang.String x)
          Set the key store location.
static void setTrustStorePassword(java.lang.String x)
          Set the trust store password.
static void setTrustStoreType(java.lang.String x)
          Set the key store format.
static void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityProviderClass

protected static java.lang.String securityProviderClass
Class name of the security provider to be used by the secure web server.


securityProtocol

private static java.lang.String securityProtocol
The security protocol to be used by the secure web server. Currently the options are SSL and TLS.


keyStorePassword

private static java.lang.String keyStorePassword
Password used to access the key store.


keyStoreType

private static java.lang.String keyStoreType
Format to be used for the key store. With the Sun JSSE the standard "JKS" format is available along with the "PKCS12" format.


keyStore

private static java.lang.String keyStore
Path to the key store that will be used by the secure web server.


trustStorePassword

private static java.lang.String trustStorePassword
Password used to access the key store.


trustStoreType

private static java.lang.String trustStoreType
Format to be used for the key store. With the Sun JSSE the standard "JKS" format is available along with the "PKCS12" format.


trustStore

private static java.lang.String trustStore
Path to the key store that will be used by the secure web server.


keyManagerType

private static java.lang.String keyManagerType
The type of key manager to be used by the secure web server. With the Sun JSSE only type available is the X509 type which is implemented in the SunX509 classes.


protocolHandlerPackages

private static java.lang.String protocolHandlerPackages
The protocol handler package to use for the secure web server. This allows the URL class to handle https streams.

Constructor Detail

SecurityTool

public SecurityTool()
Method Detail

setup

public static void setup()
                  throws java.lang.Exception
Throws:
java.lang.Exception

setProtocolHandlerPackages

public static void setProtocolHandlerPackages(java.lang.String x)
Set the protocol handler packages.

Parameters:
String - protocol handler package.

getProtocolHandlerPackages

public static java.lang.String getProtocolHandlerPackages()
Get the protocol handler packages.

Parameters:
String - protocol handler package.

setSecurityProviderClass

public static void setSecurityProviderClass(java.lang.String x)
Set the security provider class.

Parameters:
String - name of security provider class.

getSecurityProviderClass

public static java.lang.String getSecurityProviderClass()
Get the security provider class.

Returns:
String name of security provider class.

setKeyStorePassword

public static void setKeyStorePassword(java.lang.String x)
Set the key store password.

Parameters:
String - key store password.

setSecurityProtocol

public static void setSecurityProtocol(java.lang.String x)
Set the security protocol.

Parameters:
String - security protocol.

getSecurityProtocol

public static java.lang.String getSecurityProtocol()
Get the security protocol.

Returns:
String security protocol.

setKeyStore

public static void setKeyStore(java.lang.String x)
Set the key store location.

Parameters:
String - key store location.

getKeyStore

public static java.lang.String getKeyStore()
Get the key store location.

Returns:
String key store location.

setKeyStoreType

public static void setKeyStoreType(java.lang.String x)
Set the key store format.

Parameters:
String - key store format.

getKeyStoreType

public static java.lang.String getKeyStoreType()
Get the key store format.

Returns:
String key store format.

getKeyStorePassword

public static java.lang.String getKeyStorePassword()
Get the key store password.

Returns:
String key store password.

setTrustStore

public static void setTrustStore(java.lang.String x)
Set the key store location.

Parameters:
String - key store location.

getTrustStore

public static java.lang.String getTrustStore()
Get the key store location.

Returns:
String key store location.

setTrustStoreType

public static void setTrustStoreType(java.lang.String x)
Set the key store format.

Parameters:
String - key store format.

getTrustStoreType

public static java.lang.String getTrustStoreType()
Get the key store format.

Returns:
String key store format.

setTrustStorePassword

public static void setTrustStorePassword(java.lang.String x)
Set the trust store password.

Parameters:
String - trust store password.

getTrustStorePassword

public static java.lang.String getTrustStorePassword()
Get the trust store password.

Returns:
String trust store password.

setKeyManagerType

public static void setKeyManagerType(java.lang.String x)
Set the key manager type.

Parameters:
String - key manager type.

getKeyManagerType

public static java.lang.String getKeyManagerType()
Get the key manager type.

Returns:
String key manager type.


Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.