public final class HttpsLdapServer
extends java.lang.Object
HttpsLdapServer class is a basic HTTPS Web server.
Instances of this class can act as a proxy to a Microsoft Active
Directory for LDAP requests received from instances of the
HttpsDirectoryClientclass.
| Constructor and Description |
|---|
HttpsLdapServer(java.lang.String propertiesfile,
User user)
Creates in instance of the
HttpsLdapServer class. |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Attempts to connect to Microsoft Active Directory when the
servlet initializes.
|
void |
initActiveDirectory(java.lang.String securityLevel,
java.lang.String userName,
SecureStringBuffer password)
Performs Simple Authentication to the Microsoft Active Directory
that was set by a prior call to the
setDirectory
method. |
void |
printConfiguration()
Displays the server settings.
|
void |
setDirectory(LdapDirectory directory)
Sets the LDAP directory for which this server acts as a proxy.
|
void |
start()
Starts the server.
|
void |
stop()
Stops the server.
|
public HttpsLdapServer(java.lang.String propertiesfile,
User user)
throws java.io.IOException,
UserFatalException
HttpsLdapServer class.java.io.IOExceptionUserFatalExceptionpublic void printConfiguration()
throws java.io.IOException
java.io.IOExceptionpublic void initActiveDirectory(java.lang.String securityLevel,
java.lang.String userName,
SecureStringBuffer password)
throws javax.naming.NamingException
setDirectory
method.securityLevel - set to simpleuserName - the Microsoft Windows 2000 login namepassword - the Microsoft Windows 2000 login passwordjavax.naming.NamingExceptionpublic void setDirectory(LdapDirectory directory)
directory - the LDAP directorypublic void connect()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void start()
public void stop()