| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.guitools.uninstaller.ui; |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.opends.admin.ads.ADSContext; |
| | | import org.opends.admin.ads.util.ApplicationTrustManager; |
| | | import org.opends.admin.ads.util.ConnectionWrapper; |
| | | import org.opends.guitools.controlpanel.datamodel.ConnectionProtocolPolicy; |
| | | import org.opends.guitools.controlpanel.datamodel.ControlPanelInfo; |
| | | import org.opends.guitools.controlpanel.util.ConfigFromFile; |
| | |
| | | import org.opends.quicksetup.util.Utils; |
| | | |
| | | import static com.forgerock.opendj.cli.Utils.*; |
| | | |
| | | import static org.opends.messages.AdminToolMessages.*; |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | |
| | | |
| | | private InitialLdapContext ctx; |
| | | |
| | | private ConnectionWrapper connWrapper; |
| | | |
| | | private String usedUrl; |
| | | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the connection we got with the provided authentication. |
| | | * |
| | | * @return the connection |
| | | */ |
| | | public ConnectionWrapper getConnection() |
| | | { |
| | | return connWrapper; |
| | | } |
| | | |
| | | /** |
| | | * Creates and returns the panel of the dialog. |
| | | * @return the panel of the dialog. |
| | | */ |
| | |
| | | throw new ApplicationException(ReturnCode.APPLICATION_ERROR, |
| | | ERR_COULD_NOT_FIND_VALID_LDAPURL.get(), null); |
| | | } |
| | | ctx = |
| | | org.opends.guitools.controlpanel.util.Utilities.getAdminDirContext( |
| | | info, dn, pwd); |
| | | |
| | | ctx = org.opends.guitools.controlpanel.util.Utilities.getAdminDirContext(info, dn, pwd); |
| | | connWrapper = new ConnectionWrapper(ctx, info.getConnectTimeout(), info.getTrustManager()); |
| | | |
| | | } catch (NamingException ne) |
| | | { |