org.apache.xmlrpc.secure

Class SecurityTool

public class SecurityTool extends Object implements SecurityConstants

Field Summary
static StringkeyManagerType
The type of key manager to be used by the secure web server.
static StringkeyStore
Path to the key store that will be used by the secure web server.
static StringkeyStorePassword
Password used to access the key store.
static StringkeyStoreType
Format to be used for the key store.
static StringprotocolHandlerPackages
The protocol handler package to use for the secure web server.
static StringsecurityProtocol
The security protocol to be used by the secure web server.
protected static StringsecurityProviderClass
Class name of the security provider to be used by the secure web server.
static StringtrustStore
Path to the key store that will be used by the secure web server.
static StringtrustStorePassword
Password used to access the key store.
static StringtrustStoreType
Format to be used for the key store.
Method Summary
static StringgetKeyManagerType()
Get the key manager type.
static StringgetKeyStore()
Get the key store location.
static StringgetKeyStorePassword()
Get the key store password.
static StringgetKeyStoreType()
Get the key store format.
static StringgetProtocolHandlerPackages()
Get the protocol handler packages.
static StringgetSecurityProtocol()
Get the security protocol.
static StringgetSecurityProviderClass()
Get the security provider class.
static StringgetTrustStore()
Get the key store location.
static StringgetTrustStorePassword()
Get the trust store password.
static StringgetTrustStoreType()
Get the key store format.
static voidsetKeyManagerType(String x)
Set the key manager type.
static voidsetKeyStore(String x)
Set the key store location.
static voidsetKeyStorePassword(String x)
Set the key store password.
static voidsetKeyStoreType(String x)
Set the key store format.
static voidsetProtocolHandlerPackages(String x)
Set the protocol handler packages.
static voidsetSecurityProtocol(String x)
Set the security protocol.
static voidsetSecurityProviderClass(String x)
Set the security provider class.
static voidsetTrustStore(String x)
Set the key store location.
static voidsetTrustStorePassword(String x)
Set the trust store password.
static voidsetTrustStoreType(String x)
Set the key store format.
static voidsetup()

Field Detail

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 Detail

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: String protocol handler package.

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: String key manager type.

setKeyStore

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

Parameters: String key store location.

setKeyStorePassword

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

Parameters: String key store password.

setKeyStoreType

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

Parameters: String key store format.

setProtocolHandlerPackages

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

Parameters: String protocol handler package.

setSecurityProtocol

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

Parameters: String security protocol.

setSecurityProviderClass

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

Parameters: String name of security provider class.

setTrustStore

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

Parameters: String key store location.

setTrustStorePassword

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

Parameters: String trust store password.

setTrustStoreType

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

Parameters: String key store format.

setup

public static void setup()
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.