| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2011-2012 ForgeRock AS. |
| | | * Portions copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.server.extensions; |
| | | |
| | | import java.io.IOException; |
| | |
| | | sslTest(int size, String qop) throws NamingException, IOException { |
| | | LdapContext ctx = null; |
| | | try { |
| | | Hashtable<String, String> env = new Hashtable<String, String>(); |
| | | Hashtable<String, String> env = new Hashtable<>(); |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); |
| | | String url = "ldaps://localhost:" + TestCaseUtils.getServerLdapsPort(); |
| | | env.put(Context.PROVIDER_URL, url); |
| | |
| | | public void startTLS(int size) throws NamingException, IOException { |
| | | LdapContext ctx = null; |
| | | try { |
| | | Hashtable<String, String> env = new Hashtable<String, String>(); |
| | | Hashtable<String, String> env = new Hashtable<>(); |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); |
| | | String url = "ldap://localhost:" + TestCaseUtils.getServerLdapPort(); |
| | | env.put(Context.PROVIDER_URL, url); |
| | |
| | | entryAttrs.put(cn); |
| | | entryAttrs.put(sn); |
| | | entryAttrs.put(aPwdPolicy); |
| | | Hashtable<String, String> env = new Hashtable<String, String>(); |
| | | Hashtable<String, String> env = new Hashtable<>(); |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); |
| | | String url = "ldaps://localhost:" + TestCaseUtils.getServerLdapsPort(); |
| | | env.put(Context.PROVIDER_URL, url); |
| | |
| | | private void deleteTestEntry() throws NamingException { |
| | | DirContext ctx = null; |
| | | try { |
| | | Hashtable<String, String> env = new Hashtable<String, String>(); |
| | | Hashtable<String, String> env = new Hashtable<>(); |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); |
| | | String url = "ldaps://localhost:" + TestCaseUtils.getServerLdapsPort(); |
| | | env.put(Context.PROVIDER_URL, url); |