|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.ssl.CredentialConfigParser
public class CredentialConfigParser
Parses the configuration data associated with credential configs and ssl socket factories. The format of the property string should be like:
MySSLSocketFactory
{KeyStoreCredentialConfig
{{trustStore=/tmp/my.truststore}{trustStoreType=JKS}}}
or
{KeyStoreCredentialConfig
{{trustStore=/tmp/my.truststore}{trustStoreType=JKS}}}
or
{{trustCertificates=/tmp/my.crt}}
| Constructor Summary | |
|---|---|
CredentialConfigParser(String config)
Creates a new CredentialConfigParser with the supplied
configuration string. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CredentialConfigParser(String config)
CredentialConfigParser with the supplied
configuration string.
config - String| Method Detail |
|---|
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
booleanpublic Object initializeType()
Object of the type CredentialConfig
protected void setProperties(Class<?> c,
Object o)
c - Class type of the supplied objecto - Object to invoke properties on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||