[java-identity-provider COMMIT] /trunk/idp-conf/src/test/java/net/shibboleth/idp/test/InMemoryDirectory.java
noreply at shibboleth.net
noreply at shibboleth.net
Fri Feb 3 00:54:55 EST 2017
Author: dfisher
Date: Fri Feb 3 00:54:55 2017
New Revision: 8610
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8610&view=rev
Log:
Remove non startTLS test directory.
Modified:
trunk/idp-conf/src/test/java/net/shibboleth/idp/test/InMemoryDirectory.java
Modified: trunk/idp-conf/src/test/java/net/shibboleth/idp/test/InMemoryDirectory.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/test/java/net/shibboleth/idp/test/InMemoryDirectory.java?rev=8610&r1=8609&r2=8610&view=diff
==============================================================================
--- trunk/idp-conf/src/test/java/net/shibboleth/idp/test/InMemoryDirectory.java (original)
+++ trunk/idp-conf/src/test/java/net/shibboleth/idp/test/InMemoryDirectory.java Fri Feb 3 00:54:55 2017
@@ -47,36 +47,6 @@
@Nonnull private final InMemoryDirectoryServer directoryServer;
/**
- * Constructor without STARTTLS support. Listens on port 10389.
- *
- * @param ldif the LDIF resource to be imported
- *
- * @throws LDAPException if the in-memory directory server cannot be created
- * @throws IOException if the LDIF resource cannot be imported
- */
- public InMemoryDirectory(@Nonnull final Resource ldif) throws LDAPException, IOException {
- this(ldif, 10389);
- }
-
- /**
- * Constructor without STARTTLS support.
- *
- * @param ldif the LDIF resource to be imported
- * @param port port to listen on
- * @throws LDAPException if the in-memory directory server cannot be created
- * @throws IOException if the LDIF resource cannot be imported
- */
- public InMemoryDirectory(@Nonnull final Resource ldif, @Positive final int port) throws LDAPException, IOException {
- Constraint.isNotNull(ldif, "LDIF resource cannot be null");
- Constraint.isGreaterThan(-1, port, "Port must be greater than -1");
- final InMemoryDirectoryServerConfig config = new InMemoryDirectoryServerConfig("dc=example,dc=org", "ou=system");
- config.setListenerConfigs(InMemoryListenerConfig.createLDAPConfig("default", port));
- config.addAdditionalBindCredentials("cn=Directory Manager", "password");
- directoryServer = new InMemoryDirectoryServer(config);
- directoryServer.importFromLDIF(true, new LDIFReader(ldif.getInputStream()));
- }
-
- /**
* Constructor with STARTTLS support.
*
* @param ldif the LDIF resource to be imported
More information about the commits
mailing list