Package org.ldaptive.props
Class CredentialConfigParser
- java.lang.Object
-
- org.ldaptive.props.PropertyValueParser
-
- org.ldaptive.props.CredentialConfigParser
-
public class CredentialConfigParser extends PropertyValueParser
Parses the configuration data associated with credential configs. The format of the property string should be like:KeyStoreCredentialConfig {{trustStore=file:/tmp/my.truststore}{trustStoreType=JKS}}
or
{{trustCertificates=file:/tmp/my.crt}}
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_CREDENTIAL_CONFIG_CLASS
Credential config class found in the config.-
Fields inherited from class org.ldaptive.props.PropertyValueParser
CONFIG_PATTERN, logger, PARAMS_ONLY_CONFIG_PATTERN, PROPERTY_PATTERN
-
-
Constructor Summary
Constructors Constructor Description CredentialConfigParser(String config)
Creates a new credential config parser.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isCredentialConfig(String config)
Returns whether the supplied configuration data contains a credential config.-
Methods inherited from class org.ldaptive.props.PropertyValueParser
getClassName, getProperties, initialize, initializeProperties, initializeType, isConfig, isParamsOnlyConfig, setClassName, setProperties
-
-
-
-
Field Detail
-
DEFAULT_CREDENTIAL_CONFIG_CLASS
protected static final String DEFAULT_CREDENTIAL_CONFIG_CLASS
Credential config class found in the config.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CredentialConfigParser
public CredentialConfigParser(String config)
Creates a new credential config parser.- Parameters:
config
- containing configuration data
-
-
Method Detail
-
isCredentialConfig
public static boolean isCredentialConfig(String config)
Returns whether the supplied configuration data contains a credential config.- Parameters:
config
- containing configuration data- Returns:
- whether the supplied configuration data contains a credential config
-
-