|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.configuration.GConfigPropertyReader
com.genesyslab.platform.apptemplate.configuration.GConfigTlsPropertyReader
public class GConfigTlsPropertyReader
Property reader that extracts TLS-related option values from configuration objects. It is intended to be used
together with TLSConfigurationParser
.
Searches application, host, and port or connection objects for TLS-related options and provides values to TLSConfigurationParser.
Section names, option names and specific values are taken from Genesys 8.0 Security Deployment Guide
Example for server side:
String appName = "<my-app-name>";
CfgApplication cfgApplication = confService.retrieveObject(
CfgApplication.class, new CfgApplicationQuery(appName));
GCOMApplicationConfiguration appConfiguration =
new GCOMApplicationConfiguration(cfgApplication);
IGApplicationConfiguration.IGPortInfo portConfig =
appConfiguration.getPortInfo("secure");
TLSConfiguration tlsConfiguration = TLSConfigurationParser.parseTlsConfiguration(
new GConfigTlsPropertyReader(appConfiguration, portConfig), false);
Example for client side:
String appName = "<my-app-name>";
CfgApplication cfgApplication = confService.retrieveObject(
CfgApplication.class, new CfgApplicationQuery(appName));
GCOMApplicationConfiguration appConfiguration =
new GCOMApplicationConfiguration(cfgApplication);
IGApplicationConfiguration.IGAppConnConfiguration connConfig =
appConfiguration.getAppServer(CfgAppType.CFGTServer);
TLSConfiguration tlsConfiguration = TLSConfigurationParser.parseTlsConfiguration(
new GConfigTlsPropertyReader(appConfiguration, connConfig), true);
TLSConfigurationParser
Field Summary |
---|
Fields inherited from class com.genesyslab.platform.apptemplate.configuration.GConfigPropertyReader |
---|
appConfig, connConfig, hostConfig, portConfig |
Constructor Summary | |
---|---|
GConfigTlsPropertyReader(IGApplicationConfiguration appConfig,
IGApplicationConfiguration.IGAppConnConfiguration connConfig)
Creates configuration reader for client application. |
|
GConfigTlsPropertyReader(IGApplicationConfiguration appConfig,
IGApplicationConfiguration.IGAppConnConfiguration connConfig,
IGApplicationConfiguration targetServerConfig)
Creates configuration reader for client application. |
|
GConfigTlsPropertyReader(IGApplicationConfiguration appConfig,
IGApplicationConfiguration.IGPortInfo portConfig)
Creates configuration reader for server application. |
Method Summary | |
---|---|
java.lang.String |
getProperty(java.lang.String optionName)
Combined code for both client and server cases. |
Methods inherited from class com.genesyslab.platform.apptemplate.configuration.GConfigPropertyReader |
---|
findSectionOption, getAppAnnexOption, getAppOption, getConnOption, getHostAnnexOption, getPortOption, getProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GConfigTlsPropertyReader(IGApplicationConfiguration appConfig, IGApplicationConfiguration.IGPortInfo portConfig)
appConfig
- Server Application configuration objectportConfig
- Port configuration objectpublic GConfigTlsPropertyReader(IGApplicationConfiguration appConfig, IGApplicationConfiguration.IGAppConnConfiguration connConfig)
appConfig
- Client Application configuration objectconnConfig
- Connection configuration object, which connects Client to target Serverpublic GConfigTlsPropertyReader(IGApplicationConfiguration appConfig, IGApplicationConfiguration.IGAppConnConfiguration connConfig, IGApplicationConfiguration targetServerConfig)
appConfig
- Client Application configuration objectconnConfig
- Connection configuration object, which connects Client to target ServertargetServerConfig
- Target server configuration.Method Detail |
---|
public java.lang.String getProperty(java.lang.String optionName)
GConfigPropertyReader
connConfig
and appConfig
are non-null
;
for server, only portConfig
, appConfig
and hostConfig
.
getProperty
in interface PropertyReader
getProperty
in class GConfigPropertyReader
optionName
- Name of option to find in the specified configuration objects
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |