public final class Utilities extends Object
Modifier and Type | Method and Description |
---|---|
static ConnectionWrapper |
getAdminConnection(HostPort hostPort,
ControlPanelInfo controlInfo,
Dn bindDN,
String pwd)
Returns the connection to connect to the administration connector of the server using the information in the
ControlCenterInfo object (which provides the host and administration connector port to be used) and some LDAP
credentials.
|
static boolean |
isServerRunning()
Returns whether the server located in the provided path is running.
|
static String |
unescapeUtf8(String v)
Unescapes UTF-8 text and generates a String from it.
|
public static String unescapeUtf8(String v)
v
- the string in UTF-8 format.public static boolean isServerRunning()
true
if the server located in the provided path is running, false
otherwise.public static ConnectionWrapper getAdminConnection(HostPort hostPort, ControlPanelInfo controlInfo, Dn bindDN, String pwd) throws IOException, ConfigReadException
hostPort
- The host name and port of the administration connector.controlInfo
- the object which provides the connection parameters.bindDN
- the base DN to be used to bind.pwd
- the password to be used to bind.IOException
- if there was a problem connecting to the server or the provided credentials do not have enough
rights.ConfigReadException
- if there is an error reading the configuration.Copyright 2010-2018 ForgeRock AS.