org.apache.xmlrpc.secure

Class SecurityTool

Implemented Interfaces:
SecurityConstants

public class SecurityTool
extends java.lang.Object
implements SecurityConstants

Field Summary

private static String
keyManagerType
The type of key manager to be used by the secure web server.
private static String
keyStore
Path to the key store that will be used by the secure web server.
private static String
keyStorePassword
Password used to access the key store.
private static String
keyStoreType
Format to be used for the key store.
private static String
protocolHandlerPackages
The protocol handler package to use for the secure web server.
private static String
securityProtocol
The security protocol to be used by the secure web server.
protected static String
securityProviderClass
Class name of the security provider to be used by the secure web server.
private static String
trustStore
Path to the key store that will be used by the secure web server.
private static String
trustStorePassword
Password used to access the key store.
private static 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

Method Summary

static String
getKeyManagerType()
Get the key manager type.
static String
getKeyStore()
Get the key store location.
static String
getKeyStorePassword()
Get the key store password.
static String
getKeyStoreType()
Get the key store format.
static String
getProtocolHandlerPackages()
Get the protocol handler packages.
static String
getSecurityProtocol()
Get the security protocol.
static String
getSecurityProviderClass()
Get the security provider class.
static String
getTrustStore()
Get the key store location.
static String
getTrustStorePassword()
Get the trust store password.
static String
getTrustStoreType()
Get the key store format.
static void
setKeyManagerType(String x)
Set the key manager type.
static void
setKeyStore(String x)
Set the key store location.
static void
setKeyStorePassword(String x)
Set the key store password.
static void
setKeyStoreType(String x)
Set the key store format.
static void
setProtocolHandlerPackages(String x)
Set the protocol handler packages.
static void
setSecurityProtocol(String x)
Set the security protocol.
static void
setSecurityProviderClass(String x)
Set the security provider class.
static void
setTrustStore(String x)
Set the key store location.
static void
setTrustStorePassword(String x)
Set the trust store password.
static void
setTrustStoreType(String x)
Set the key store format.
static void
setup()

Field Details

keyManagerType

private static 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.

keyStore

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

keyStorePassword

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

keyStoreType

private static 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.

protocolHandlerPackages

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

securityProtocol

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

securityProviderClass

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

trustStore

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

trustStorePassword

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

trustStoreType

private static 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.

Method Details

getKeyManagerType

public static String getKeyManagerType()
Get the key manager type.
Returns:
String key manager type.

getKeyStore

public static String getKeyStore()
Get the key store location.
Returns:
String key store location.

getKeyStorePassword

public static String getKeyStorePassword()
Get the key store password.
Returns:
String key store password.

getKeyStoreType

public static String getKeyStoreType()
Get the key store format.
Returns:
String key store format.

getProtocolHandlerPackages

public static String getProtocolHandlerPackages()
Get the protocol handler packages.
Parameters:

getSecurityProtocol

public static String getSecurityProtocol()
Get the security protocol.
Returns:
String security protocol.

getSecurityProviderClass

public static String getSecurityProviderClass()
Get the security provider class.
Returns:
String name of security provider class.

getTrustStore

public static String getTrustStore()
Get the key store location.
Returns:
String key store location.

getTrustStorePassword

public static String getTrustStorePassword()
Get the trust store password.
Returns:
String trust store password.

getTrustStoreType

public static String getTrustStoreType()
Get the key store format.
Returns:
String key store format.

setKeyManagerType

public static void setKeyManagerType(String x)
Set the key manager type.
Parameters:

setKeyStore

public static void setKeyStore(String x)
Set the key store location.
Parameters:

setKeyStorePassword

public static void setKeyStorePassword(String x)
Set the key store password.
Parameters:

setKeyStoreType

public static void setKeyStoreType(String x)
Set the key store format.
Parameters:

setProtocolHandlerPackages

public static void setProtocolHandlerPackages(String x)
Set the protocol handler packages.
Parameters:

setSecurityProtocol

public static void setSecurityProtocol(String x)
Set the security protocol.
Parameters:

setSecurityProviderClass

public static void setSecurityProviderClass(String x)
Set the security provider class.
Parameters:

setTrustStore

public static void setTrustStore(String x)
Set the key store location.
Parameters:

setTrustStorePassword

public static void setTrustStorePassword(String x)
Set the trust store password.
Parameters:

setTrustStoreType

public static void setTrustStoreType(String x)
Set the key store format.
Parameters:

setup

public static void setup()
            throws Exception

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.