Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.connection.tls
Class TLSConfigurationHelper

java.lang.Object
  extended by com.genesyslab.platform.commons.connection.tls.TLSConfigurationHelper

public class TLSConfigurationHelper
extends java.lang.Object

Provides methods to create TLS configuration objects for endpoints and connections out of ITLSConnectionConfiguration instance.


Field Summary
static char[] DEFAULT_PASSWORD
          Default entry password used when creating KeyStore.
 
Constructor Summary
TLSConfigurationHelper()
           
 
Method Summary
static javax.net.ssl.SSLContext createSslContext(TLSConfiguration config)
          Prepares SSLContext that can be then used to create Endpoints.
static SSLExtendedOptions createSslExtendedOptions(TLSConfiguration config)
          Prepares SSLExtendedOptions instance that can be then used to create Endpoints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PASSWORD

public static final char[] DEFAULT_PASSWORD
Default entry password used when creating KeyStore.

Constructor Detail

TLSConfigurationHelper

public TLSConfigurationHelper()
Method Detail

createSslContext

public static javax.net.ssl.SSLContext createSslContext(TLSConfiguration config)
                                                 throws java.lang.SecurityException
Prepares SSLContext that can be then used to create Endpoints.

Parameters:
config - ITLSConnectionConfiguration instance with TLS parameters.
Returns:
Configured SSLContext instance.
Throws:
java.lang.SecurityException - if TLS parameters are inconsistent, not valid or do not match OS/Java configuration.
See Also:
TLSConfigurationParser

createSslExtendedOptions

public static SSLExtendedOptions createSslExtendedOptions(TLSConfiguration config)
Prepares SSLExtendedOptions instance that can be then used to create Endpoints. SSLExtendedOptions carries TLS/SSL options that can not be set directly to SSLContext.

Parameters:
config - ITLSConnectionConfiguration instance with TLS parameters.
Returns:
Configured SSLExtendedOptions instance.
See Also:
TLSConfigurationParser

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.