org.apache.xmlrpc.secure
Class SecurityTool

java.lang.Object
  |
  +--org.apache.xmlrpc.secure.SecurityTool
All Implemented Interfaces:
SecurityConstants

public class SecurityTool
extends java.lang.Object
implements SecurityConstants


Field Summary
protected static java.lang.String securityProviderClass
          Class name of the security provider to be used by the secure web server.
 
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.
Constructor Detail

SecurityTool

public SecurityTool()
Method Detail

setup

public static void setup()
                  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.