public class LDAPConfigurationBuilder extends Object
| Constructor and Description |
|---|
LDAPConfigurationBuilder(File file)
Constructor with the configuration file as input that reads the file into an InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildConfigurations()
Build separate sections of the configuration file and the configuration file as a whole, as
OMElements.
|
String |
getConnectionPassword() |
KdcConfiguration |
getKdcConfigurations() |
LDAPConfiguration |
getLdapConfiguration() |
PartitionInfo |
getPartitionConfigurations() |
protected org.wso2.carbon.user.api.RealmConfiguration |
getUserManagementXMLElement() |
boolean |
isEmbeddedLDAPEnabled() |
boolean |
isKdcEnabled() |
void |
setUserMgtXMLFilePath(String filePath) |
public LDAPConfigurationBuilder(File file) throws FileNotFoundException
file - that includes embedded-ldap server configurations.FileNotFoundExceptionpublic void buildConfigurations()
throws EmbeddingLDAPException
EmbeddingLDAPException - Following is a sample configuration file:
public String getConnectionPassword() throws EmbeddingLDAPException
EmbeddingLDAPExceptionpublic LDAPConfiguration getLdapConfiguration() throws EmbeddingLDAPException
EmbeddingLDAPExceptionpublic PartitionInfo getPartitionConfigurations() throws EmbeddingLDAPException
EmbeddingLDAPExceptionpublic KdcConfiguration getKdcConfigurations() throws EmbeddingLDAPException
EmbeddingLDAPExceptionpublic boolean isKdcEnabled()
public boolean isEmbeddedLDAPEnabled()
protected org.wso2.carbon.user.api.RealmConfiguration getUserManagementXMLElement()
public void setUserMgtXMLFilePath(String filePath)
Copyright © 2015 WSO2. All rights reserved.