IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.security.config
Class ClientSecurityConfigurationFactory

java.lang.Object
  extended by com.ibm.websphere.objectgrid.security.config.ClientSecurityConfigurationFactory

public class ClientSecurityConfigurationFactory
extends Object

This class is a factory class for creating ClientSecurityConfiguration and SSLConfiguration objects.

Since:
WAS XD 6.0.1, XC10
See Also:
ClientSecurityConfiguration, SSLConfiguration

Constructor Summary
ClientSecurityConfigurationFactory()
           
 
Method Summary
static ClientSecurityConfiguration getClientSecurityConfiguration()
          Creates a new client security configuration with all its attributes set to their default values.
static ClientSecurityConfiguration getClientSecurityConfiguration(Properties props)
          Creates a new client security configuration based on a Properties object.
static ClientSecurityConfiguration getClientSecurityConfiguration(String fileName)
          Creates a new client security configuration based on a client security property file.
static SSLConfiguration getSSLConfiguration()
          Creates a new SSL configuration with all its attributes set to their default values.
static SSLConfiguration getSSLConfiguration(String alias, String jsseProvider, String keyStoreName, String keyStoreType, String keyStorePassword, String trustStoreName, String trustStoreType, String trustStorePassword, String protocol)
          Creates a new SSL configuration using the specified attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSecurityConfigurationFactory

public ClientSecurityConfigurationFactory()
Method Detail

getSSLConfiguration

public static SSLConfiguration getSSLConfiguration()
Creates a new SSL configuration with all its attributes set to their default values.

Returns:
a new SSLConfiguration instance
See Also:
ClientSecurityConfiguration.setSSLConfiguration(SSLConfiguration), SSLConfiguration

getSSLConfiguration

public static SSLConfiguration getSSLConfiguration(String alias,
                                                   String jsseProvider,
                                                   String keyStoreName,
                                                   String keyStoreType,
                                                   String keyStorePassword,
                                                   String trustStoreName,
                                                   String trustStoreType,
                                                   String trustStorePassword,
                                                   String protocol)
Creates a new SSL configuration using the specified attributes.

Parameters:
alias - the key alias in the key store
jsseProvider - the JSSE provider
keyStoreName - the key store file path name
keyStoreType - format of the key store
keyStorePassword - the password to the key store
trustStoreName - the trust store file path name
trustStoreType - the format of the trust store
trustStorePassword - the password to the trust store
protocol - the SSL protocol
Returns:
a new SSLConfiguration instance
Throws:
IllegalArgumentException - if keyStoreName or trustStoreName are null or a zero length String
See Also:
ClientSecurityConfiguration.setSSLConfiguration(SSLConfiguration), SSLConfiguration

getClientSecurityConfiguration

public static ClientSecurityConfiguration getClientSecurityConfiguration()
Creates a new client security configuration with all its attributes set to their default values.

Returns:
a new ClientSecurityConfiguration instance
See Also:
ClientSecurityConfiguration

getClientSecurityConfiguration

public static ClientSecurityConfiguration getClientSecurityConfiguration(String fileName)
Creates a new client security configuration based on a client security property file.

Parameters:
fileName - a security property file name
Returns:
a new ClientSecurityConfiguration instance
Throws:
IllegalArgumentException - if there are attributes in the Properties object with invalid values
See Also:
ClientSecurityConfiguration

getClientSecurityConfiguration

public static ClientSecurityConfiguration getClientSecurityConfiguration(Properties props)
Creates a new client security configuration based on a Properties object.

Parameters:
props - a Properties object
Returns:
a new ClientSecurityConfiguration instance
Throws:
IllegalArgumentException - if there are attributes in the Properties object with invalid values
See Also:
ClientSecurityConfiguration

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.