public class BootstrapData extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PWD_KEY |
static String |
DS_BASE_DN |
static String |
DS_HOST |
static String |
DS_ISEMBEDDED |
static String |
DS_MGR |
static String |
DS_PORT |
static String |
DS_PROTOCOL |
static String |
DS_PWD |
static String |
DS_REPLICATIONPORT |
static String |
DS_REPLICATIONPORT_AVAILABLE |
static String |
DSAME_PWD_KEY |
static String |
ENCKEY |
Constructor and Description |
---|
BootstrapData(Map mapConfig) |
BootstrapData(String basedir)
Creates an instance of this class
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseDN() |
List |
getData()
Returns list of bootstrap data.
|
Map |
getDataAsMap(int idx)
Gets attributes in a given row as a
Map . |
String |
getDsameUserPassword() |
String |
getInstanceName() |
String |
getServerConfigXML(boolean bCrypt)
Returns server configuration XML.
|
String |
getUserBaseDN() |
void |
initSMS(boolean startDS) |
static Map<String,String> |
queryStringToMap(String str) |
public static final String DSAME_PWD_KEY
public static final String CONFIG_PWD_KEY
public static final String DS_HOST
public static final String DS_PORT
public static final String DS_PROTOCOL
public static final String DS_PWD
public static final String DS_MGR
public static final String DS_BASE_DN
public static final String DS_REPLICATIONPORT
public static final String DS_REPLICATIONPORT_AVAILABLE
public static final String DS_ISEMBEDDED
public static final String ENCKEY
public BootstrapData(String basedir) throws IOException
basedir
- Base Directory of the installation.IOException
- if cannot read the file.public BootstrapData(Map mapConfig) throws UnsupportedEncodingException
UnsupportedEncodingException
public List getData()
public String getInstanceName()
public String getUserBaseDN()
public String getBaseDN()
public String getDsameUserPassword()
public Map getDataAsMap(int idx) throws MalformedURLException, UnsupportedEncodingException
Map
.idx
- row (starting with 0)MalformedURLException
UnsupportedEncodingException
public void initSMS(boolean startDS) throws UnsupportedEncodingException, LDAPServiceException, MalformedURLException
public String getServerConfigXML(boolean bCrypt) throws UnsupportedEncodingException, MalformedURLException
bCrypt
- true
to decrypt the password with default key
and encrypt it with the key defined in
AMConfig.properties
.UnsupportedEncodingException
- if XML encoding is incorrect.MalformedURLException
- if bootstrap URL is not well formed.public static Map<String,String> queryStringToMap(String str) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.