Package com.nimbusds.common.config
Class Json2LdapDetails
java.lang.Object
com.nimbusds.common.config.WebServiceDetails
com.nimbusds.common.config.Json2LdapDetails
- All Implemented Interfaces:
LoggableConfiguration
Json2Ldap web service connect details.
The configuration is stored as public fields which become immutable (final) after their initialisation.
Property keys: [prefix]*
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default LDAP server use.final boolean
Determines whether to use the default LDAP server specified by the Json2Ldap web service.Fields inherited from class com.nimbusds.common.config.WebServiceDetails
apiKey, connectTimeout, DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT, DEFAULT_SELF_SIGNED_CERT_TRUST, readTimeout, trustSelfSignedCerts, url
Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration
LOG_CATEGORY
-
Constructor Summary
ConstructorDescriptionJson2LdapDetails
(String prefix, Properties props) Creates a new Json2Ldap details instance from the specified properties. -
Method Summary
-
Field Details
-
useDefaultLDAPServer
Determines whether to use the default LDAP server specified by the Json2Ldap web service.If
false
the LDAP server details must be specified explicitly in theLDAP server configuration
.Property key: [prefix]useDefaultLDAPServer
-
DEFAULT_LDAP_SERVER
The default LDAP server use.- See Also:
-
-
Constructor Details
-
Json2LdapDetails
public Json2LdapDetails(String prefix, Properties props) throws com.thetransactioncompany.util.PropertyParseException Creates a new Json2Ldap details instance from the specified properties.Mandatory properties:
- [prefix]url
Optional properties, with defaults:
- [prefix]useDefaultLDAPServer = true
- [prefix]trustSelfSignedCerts = false
- [prefix]connectTimeout = 0
- [prefix]readTimeout = 0
- [prefix]apiKey = 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 Details
-
log
Logs the configuration details at INFO level.- Specified by:
log
in interfaceLoggableConfiguration
- Overrides:
log
in classWebServiceDetails
-