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
- String
public 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
- String
boolean
public Object initializeType()
Object
of the type CredentialConfig
Copyright © 2014. All rights reserved.