Package com.nimbusds.common.config
Class DirectoryUser
java.lang.Object
com.nimbusds.common.config.DirectoryUser
- All Implemented Interfaces:
LoggableConfiguration
Directory user, with DN and password.
The configuration is stored as public fields which become immutable (final) after their initialisation.
Property keys: [prefix]*
-
Field Summary
Modifier and TypeFieldDescriptionfinal com.unboundid.ldap.sdk.DN
The distinguished name (DN) of the directory user DN.final String
The directory user password.Fields inherited from interface com.nimbusds.common.config.LoggableConfiguration
LOG_CATEGORY
-
Constructor Summary
ConstructorDescriptionDirectoryUser
(com.unboundid.ldap.sdk.DN dn, String password) Creates a new directory user.DirectoryUser
(String prefix, Properties props) Creates a new directory user from the specified properties. -
Method Summary
-
Field Details
-
dn
The distinguished name (DN) of the directory user DN. ADN.NULL_DN
value represents an anonymous user.Property key: [prefix]dn
-
password
The directory user password. An empty string represents an anonymous user.Property key: [prefix]password
-
-
Constructor Details
-
DirectoryUser
public DirectoryUser(String prefix, Properties props) throws com.thetransactioncompany.util.PropertyParseException Creates a new directory user from the specified properties.Mandatory properties:
- [prefix]dn
- [prefix]password
- 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.
-
DirectoryUser
Creates a new directory user.- Parameters:
dn
- The distinguished name (DN) of the directory user DN. ADN.NULL_DN
value represents an anonymous user. Must not benull
.password
- The directory user password. An empty string represents an anonymous user.
-
-
Method Details
-
log
Logs the configuration details at INFO level.- Specified by:
log
in interfaceLoggableConfiguration
-