public class CredentialConfigParser extends Object
MySSLSocketFactory
{KeyStoreCredentialConfig
{{trustStore=/tmp/my.truststore}{trustStoreType=JKS}}}
or
{KeyStoreCredentialConfig
{{trustStore=/tmp/my.truststore}{trustStoreType=JKS}}}
or
{{trustCertificates=/tmp/my.crt}}
| Constructor and Description |
|---|
CredentialConfigParser(String config)
Creates a new
CredentialConfigParser with the supplied
configuration string. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCredentialConfigClassName()
Returns the credential config class name from the configuration.
|
Map<String,String> |
getProperties()
Returns the properties from the configuration.
|
String |
getSslSocketFactoryClassName()
Returns the SSL socket factory class name from the configuration.
|
Object |
initializeType()
Initialize an instance of credential config with the properties contained
in this config.
|
static boolean |
isCredentialConfig(String config)
Returns whether the supplied configuration data contains a credential
config.
|
protected void |
setProperties(Class<?> c,
Object o)
Sets the properties on the supplied object.
|
public CredentialConfigParser(String config)
CredentialConfigParser with the supplied
configuration string.config - Stringpublic String getSslSocketFactoryClassName()
String class namepublic String getCredentialConfigClassName()
String class namepublic Map<String,String> getProperties()
Map of property name to valuepublic static boolean isCredentialConfig(String config)
config - Stringbooleanpublic Object initializeType()
Object of the type CredentialConfigCopyright © 2014. All rights reserved.