LoggableConfiguration
public class CustomTrustStoreConfiguration extends Object implements LoggableConfiguration
Supports Lo4j logging, see log
.
Property keys: [prefix]*
Modifier and Type | Field | Description |
---|---|---|
boolean |
enable |
If
true a custom trust store file must be used to determine
the acceptable security certificates presented by the remote server. |
String |
file |
The file system location of the custom trust store file.
|
String |
password |
The password to unlock the custom trust store file.
|
String |
type |
The type of the custom trust store file, typically "JKS" or "PKCS12".
|
LOG_CATEGORY
Constructor | Description |
---|---|
CustomTrustStoreConfiguration(String prefix,
Properties props) |
Creates a new custom trust store configuration from the specified
properties.
|
Modifier and Type | Method | Description |
---|---|---|
void |
log() |
Logs the configuration details at INFO level using Log4j.
|
public final boolean enable
true
a custom trust store file must be used to determine
the acceptable security certificates presented by the remote server.
If false
the default trust store will be used (if one has
been provided and correctly configured).
Property key: [prefix]enable
public final String file
Property key: [prefix]file
public final String type
null
string indicates to use the system default
type.
Property key: [prefix]type
public CustomTrustStoreConfiguration(String prefix, Properties props) throws com.thetransactioncompany.util.PropertyParseException
Mandatory properties:
Conditionally mandatory properties:
Optional properties, with defaults:
prefix
- The properties prefix. Must not be null
.props
- The properties. Must not be null
.com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.public void log()
log
in interface LoggableConfiguration
Copyright © 2018 Connect2id. All rights reserved.