Package com.nimbusds.common.config
Class Json2LdapDetails
- java.lang.Object
-
- com.nimbusds.common.config.WebServiceDetails
-
- com.nimbusds.common.config.Json2LdapDetails
-
- All Implemented Interfaces:
LoggableConfiguration
public class Json2LdapDetails extends WebServiceDetails
Json2Ldap web service connect details.The configuration is stored as public fields which become immutable (final) after their initialisation.
Property keys: [prefix]*
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_LDAP_SERVER
The default LDAP server use.boolean
useDefaultLDAPServer
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
Constructors Constructor Description Json2LdapDetails(String prefix, Properties props)
Creates a new Json2Ldap details instance from the specified properties.
-
-
-
Field Detail
-
useDefaultLDAPServer
public final boolean 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
public static final boolean DEFAULT_LDAP_SERVER
The default LDAP server use.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
log
public void log()
Logs the configuration details at INFO level.- Specified by:
log
in interfaceLoggableConfiguration
- Overrides:
log
in classWebServiceDetails
-
-