| | |
| | | * |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.forgerock.opendj.examples; |
| | |
| | | * An LDAP directory server which exposes data contained in an LDIF file. This |
| | | * is implementation is very simple and is only intended as an example: |
| | | * <ul> |
| | | * <li>It does not support SSL connections |
| | | * <li>It does not support StartTLS |
| | | * <li>It does not support Abandon or Cancel requests |
| | | * <li>Very basic authentication and authorization support. |
| | |
| | | * This example takes the following command line parameters: |
| | | * |
| | | * <pre> |
| | | * <listenAddress> <listenPort> [<ldifFile>] |
| | | * <listenAddress> <listenPort> <ldifFile> [<keyStoreFile> <keyStorePassword> <certNickname>] |
| | | * </pre> |
| | | */ |
| | | public final class Server { |
| | |
| | | * Main method. |
| | | * |
| | | * @param args |
| | | * The command line arguments: listen address, listen port, |
| | | * ldifFile |
| | | * The command line arguments: listen address, listen port, ldifFile, |
| | | * and optionally: key store, key store password and certificate nick name |
| | | */ |
| | | public static void main(final String[] args) { |
| | | if (args.length != 3 && args.length != 6) { |