edu.vt.middleware.ldap.ssl
public class CredentialConfigParser extends java.lang.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(java.lang.String config)
Creates a new
CredentialConfigParser with the supplied
configuration string. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCredentialConfigClassName()
Returns the credential config class name from the configuration.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns the properties from the configuration.
|
java.lang.String |
getSslSocketFactoryClassName()
Returns the SSL socket factory class name from the configuration.
|
java.lang.Object |
initializeType()
Initialize an instance of credential config with the properties contained
in this config.
|
static boolean |
isCredentialConfig(java.lang.String config)
Returns whether the supplied configuration data contains a credential
config.
|
protected void |
setProperties(java.lang.Class<?> c,
java.lang.Object o)
Sets the properties on the supplied object.
|
public CredentialConfigParser(java.lang.String config)
CredentialConfigParser with the supplied
configuration string.config - Stringpublic java.lang.String getSslSocketFactoryClassName()
String class namepublic java.lang.String getCredentialConfigClassName()
String class namepublic java.util.Map<java.lang.String,java.lang.String> getProperties()
Map of property name to valuepublic static boolean isCredentialConfig(java.lang.String config)
config - Stringbooleanpublic java.lang.Object initializeType()
Object of the type CredentialConfigprotected void setProperties(java.lang.Class<?> c,
java.lang.Object o)
c - Class type of the supplied objecto - Object to invoke properties onCopyright © 2014. All Rights Reserved.