Package com.nimbusds.common.config
Class CustomTrustStoreConfiguration
- java.lang.Object
-
- com.nimbusds.common.config.CustomTrustStoreConfiguration
-
- All Implemented Interfaces:
LoggableConfiguration
public class CustomTrustStoreConfiguration extends Object implements LoggableConfiguration
Details of a custom trust store for remote server X.509 certificates.Supports Lo4j logging, see
log
.Property keys: [prefix]*
-
-
Field Summary
Fields Modifier and Type Field Description boolean
enable
Iftrue
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".-
Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration
LOG_CATEGORY
-
-
Constructor Summary
Constructors Constructor Description CustomTrustStoreConfiguration(String prefix, Properties props)
Creates a new custom trust store configuration from the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
log()
Logs the configuration details at INFO level using Log4j.
-
-
-
Field Detail
-
enable
public final boolean enable
Iftrue
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
-
file
public final String file
The file system location of the custom trust store file.Property key: [prefix]file
-
type
public final String type
The type of the custom trust store file, typically "JKS" or "PKCS12". An empty ornull
string indicates to use the system default type.Property key: [prefix]type
-
-
Constructor Detail
-
CustomTrustStoreConfiguration
public CustomTrustStoreConfiguration(String prefix, Properties props) throws com.thetransactioncompany.util.PropertyParseException
Creates a new custom trust store configuration from the specified properties.Mandatory properties:
- none
Conditionally mandatory properties:
- [prefix]file - if the trust store is enabled
Optional properties, with defaults:
- [prefix]enable = false
- [prefix]type = null
- [prefix]password = null
- Parameters:
prefix
- The properties prefix. Must not benull
.props
- The properties. Must not benull
.- Throws:
com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.
-
-
Method Detail
-
log
public void log()
Logs the configuration details at INFO level using Log4j.- Specified by:
log
in interfaceLoggableConfiguration
-
-