Package com.nimbusds.common.ldap
Class SampleDirectory.Configuration
- java.lang.Object
-
- com.nimbusds.common.ldap.SampleDirectory.Configuration
-
- Enclosing class:
- SampleDirectory
public static class SampleDirectory.Configuration extends Object
The sample directory server configuration.
-
-
Field Summary
Fields Modifier and Type Field Description String
baseDN
The base distinguished name (DN) of the directory information tree.String
content
The initial directory information tree, supplied in a single LDIF file.static boolean
DEFAULT_ENABLE
The default enable policy.static Set<com.unboundid.ldap.sdk.OperationType>
DEFAULT_OPERATIONS
The default permitted LDAP operations.static int
DEFAULT_PORT
The default port number.boolean
enable
Iftrue
the sample directory server must be enabled.Set<com.unboundid.ldap.sdk.OperationType>
operations
Specifies the permitted LDAP operations.int
port
The port number on which the sample directory server must accept LDAP client connections.String
schema
Specifies an alternative schema for the sample directory + server, supplied in a single LDIF file.
-
Constructor Summary
Constructors Constructor Description Configuration(Properties props)
Creates a new sample directory server configuration from the specified properties.
-
-
-
Field Detail
-
enable
public final boolean enable
Iftrue
the sample directory server must be enabled.Property key: sampleDirectoryServer.enable
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLE
The default enable policy.- See Also:
- Constant Field Values
-
port
public final int port
The port number on which the sample directory server must accept LDAP client connections.Property key: sampleDirectoryServer.port
-
DEFAULT_PORT
public static final int DEFAULT_PORT
The default port number.- See Also:
- Constant Field Values
-
operations
public final Set<com.unboundid.ldap.sdk.OperationType> operations
Specifies the permitted LDAP operations.Property key: sampleDirectoryServer.operations
-
DEFAULT_OPERATIONS
public static final Set<com.unboundid.ldap.sdk.OperationType> DEFAULT_OPERATIONS
The default permitted LDAP operations.
-
schema
public final String schema
Specifies an alternative schema for the sample directory + server, supplied in a single LDIF file. Ifnull
the default built-in server schema must be used.Property key: sampleDirectoryServer.schema
-
baseDN
public final String baseDN
The base distinguished name (DN) of the directory information tree.Property key: sampleDirectoryServer.baseDN
-
-
Constructor Detail
-
Configuration
public Configuration(Properties props) throws com.thetransactioncompany.util.PropertyParseException
Creates a new sample directory server configuration from the specified properties.- Parameters:
props
- The configuration properties. Must not benull
.- Throws:
com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.
-
-