org.wso2.carbon.ldap.server.configuration
Class LDAPConfigurationBuilder
java.lang.Object
org.wso2.carbon.ldap.server.configuration.LDAPConfigurationBuilder
public class LDAPConfigurationBuilder
- extends Object
This class is responsible for building LDAP and KDC configurations. Given a file
name this will read configuration values and populate them into configuration classes.
Related configuration file is embedded-ldap.xml.
|
Constructor Summary |
LDAPConfigurationBuilder(File file)
Constructor with the configuration file as input that reads the file into an InputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPConfigurationBuilder
public LDAPConfigurationBuilder(File file)
throws FileNotFoundException
- Constructor with the configuration file as input that reads the file into an InputStream.
- Parameters:
file - that includes embedded-ldap server configurations.
- Throws:
FileNotFoundException
buildConfigurations
public void buildConfigurations()
throws EmbeddingLDAPException
- Build separate sections of the configuration file and the configuration file as a whole, as
OMElements.
- Throws:
EmbeddingLDAPException - Following is a sample configuration file:
true
default
admin
.
false
true
false
2000000
localhost
ldap/localhost@EXAMPLE.COM
root
wso2.com
secret
randall
admin
admin
admin
admin
admin
SHA
admin
cn
member
defaultKDC
false
UDP
localhost
8640000
604800000
true
getConnectionPassword
public String getConnectionPassword()
throws EmbeddingLDAPException
- Throws:
EmbeddingLDAPException
getLdapConfiguration
public LDAPConfiguration getLdapConfiguration()
throws EmbeddingLDAPException
- Throws:
EmbeddingLDAPException
getPartitionConfigurations
public PartitionInfo getPartitionConfigurations()
throws EmbeddingLDAPException
- Throws:
EmbeddingLDAPException
getKdcConfigurations
public KdcConfiguration getKdcConfigurations()
throws EmbeddingLDAPException
- Throws:
EmbeddingLDAPException
isKdcEnabled
public boolean isKdcEnabled()
isEmbeddedLDAPEnabled
public boolean isEmbeddedLDAPEnabled()
getUserManagementXMLElement
protected org.wso2.carbon.user.api.RealmConfiguration getUserManagementXMLElement()
setUserMgtXMLFilePath
public void setUserMgtXMLFilePath(String filePath)
Copyright © 2015 WSO2. All rights reserved.