|
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.commons.connection.tls.TLSConfigurationParser
public class TLSConfigurationParser
Utility class that helps extract TLS options from configuration objects and prepare TLSConfiguration that can be applied to configure secure connectivity in protocol instances.
Constructor Summary | |
---|---|
TLSConfigurationParser()
|
Method Summary | |
---|---|
static TLSConfiguration |
parseClientTlsConfiguration(KVList kvl)
Helper method that extracts client-side TLS options from KVList object and parses them. |
static TLSConfiguration |
parseClientTlsConfiguration(java.util.Map<java.lang.String,java.lang.String> map)
Helper method that extracts client-side TLS options from Map object and parses them. |
static TLSConfiguration |
parseClientTlsConfiguration(java.util.Properties prop)
Helper method that extracts client-side TLS options from Properties object and parses them. |
static TLSConfiguration |
parseClientTlsConfiguration(java.lang.String transportParams)
Helper method that extracts client-side TLS options from String object containing
Transport Parameters received from Configuration Server; and parses them. |
static TLSConfiguration |
parseServerTlsConfiguration(KVList kvl)
Helper method that extracts server-side TLS options from KVList object and parses them. |
static TLSConfiguration |
parseServerTlsConfiguration(java.util.Map<java.lang.String,java.lang.String> map)
Helper method that extracts server-side TLS options from Map object and parses them. |
static TLSConfiguration |
parseServerTlsConfiguration(java.util.Properties prop)
Helper method that extracts server-side TLS options from Properties object and parses them. |
static TLSConfiguration |
parseServerTlsConfiguration(java.lang.String transportParams)
Helper method that extracts server-side TLS options from String object containing
Transport Parameters received from Configuration Server; and parses them. |
static TLSConfiguration |
parseTlsConfiguration(PropertyReader prop,
boolean clientMode)
Creates a new instance of TLSConfiguration , searches source of configuration information represented
by PropertyReader instance for TLS-related options, fills TLSConfiguration instance fields and
returns it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLSConfigurationParser()
Method Detail |
---|
public static TLSConfiguration parseServerTlsConfiguration(KVList kvl)
KVList
object and parses them.
kvl
- TLS options source
public static TLSConfiguration parseClientTlsConfiguration(KVList kvl)
KVList
object and parses them.
kvl
- TLS options source
public static TLSConfiguration parseServerTlsConfiguration(java.util.Map<java.lang.String,java.lang.String> map)
Map
object and parses them.
map
- TLS options source
public static TLSConfiguration parseClientTlsConfiguration(java.util.Map<java.lang.String,java.lang.String> map)
Map
object and parses them.
map
- TLS options source
public static TLSConfiguration parseServerTlsConfiguration(java.util.Properties prop)
Properties
object and parses them.
prop
- TLS options source
public static TLSConfiguration parseClientTlsConfiguration(java.util.Properties prop)
Properties
object and parses them.
prop
- TLS options source
public static TLSConfiguration parseServerTlsConfiguration(java.lang.String transportParams)
String
object containing
Transport Parameters received from Configuration Server; and parses them.
transportParams
- TLS options source
public static TLSConfiguration parseClientTlsConfiguration(java.lang.String transportParams)
String
object containing
Transport Parameters received from Configuration Server; and parses them.
transportParams
- TLS options source
public static TLSConfiguration parseTlsConfiguration(PropertyReader prop, boolean clientMode)
Creates a new instance of TLSConfiguration
, searches source of configuration information represented
by PropertyReader
instance for TLS-related options, fills TLSConfiguration
instance fields and
returns it.
Example:
KVList kvl = new KeyValueCollection();
kvl.addObject("tls", "1");
kvl.addObject("tls-mutual", "1");
PropertyReader reader = new KVListPropertyReader(kvl);
TLSConnectionConfiguration tlsConfiguration =
TLSConfigurationParser.parseTlsConfiguration(reader, true);
prop
- PropertyReader to get TLS parameters fromclientMode
- Specify true
to parse options for client applications and false
for server
applications.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |