Class LDAPServerConfigurationBuilder
- java.lang.Object
-
- org.wso2.msf4j.examples.petstore.security.ldap.server.LDAPServerConfigurationBuilder
-
public class LDAPServerConfigurationBuilder extends java.lang.ObjectThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_NAME_PROP_NAMEstatic java.lang.StringLOCAL_NAME_PROPERTY
-
Constructor Summary
Constructors Constructor Description LDAPServerConfigurationBuilder(java.io.File file)Constructor with the configuration file as input that reads the file into an InputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildConfigurations()Build separate sections of the configuration file and the configuration file as a whole, as OMElements.java.lang.StringgetConnectionPassword()org.wso2.carbon.apacheds.KdcConfigurationgetKdcConfigurations()org.wso2.carbon.apacheds.LDAPConfigurationgetLdapConfiguration()org.wso2.carbon.apacheds.PartitionInfogetPartitionConfigurations()booleanisEmbeddedLDAPEnabled()booleanisKdcEnabled()
-
-
-
Field Detail
-
LOCAL_NAME_PROPERTY
public static final java.lang.String LOCAL_NAME_PROPERTY
- See Also:
- Constant Field Values
-
ATTR_NAME_PROP_NAME
public static final java.lang.String ATTR_NAME_PROP_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LDAPServerConfigurationBuilder
public LDAPServerConfigurationBuilder(java.io.File file) throws java.io.FileNotFoundExceptionConstructor with the configuration file as input that reads the file into an InputStream.- Parameters:
file- that includes embedded-ldap server configurations.- Throws:
java.io.FileNotFoundException
-
-
Method Detail
-
buildConfigurations
public void buildConfigurations() throws org.wso2.carbon.ldap.server.util.EmbeddingLDAPExceptionBuild separate sections of the configuration file and the configuration file as a whole, as OMElements.- Throws:
org.wso2.carbon.ldap.server.util.EmbeddingLDAPException
-
getConnectionPassword
public java.lang.String getConnectionPassword() throws org.wso2.carbon.ldap.server.util.EmbeddingLDAPException- Throws:
org.wso2.carbon.ldap.server.util.EmbeddingLDAPException
-
getLdapConfiguration
public org.wso2.carbon.apacheds.LDAPConfiguration getLdapConfiguration() throws org.wso2.carbon.ldap.server.util.EmbeddingLDAPException- Throws:
org.wso2.carbon.ldap.server.util.EmbeddingLDAPException
-
getPartitionConfigurations
public org.wso2.carbon.apacheds.PartitionInfo getPartitionConfigurations() throws org.wso2.carbon.ldap.server.util.EmbeddingLDAPException- Throws:
org.wso2.carbon.ldap.server.util.EmbeddingLDAPException
-
getKdcConfigurations
public org.wso2.carbon.apacheds.KdcConfiguration getKdcConfigurations() throws org.wso2.carbon.ldap.server.util.EmbeddingLDAPException- Throws:
org.wso2.carbon.ldap.server.util.EmbeddingLDAPException
-
isKdcEnabled
public boolean isKdcEnabled()
-
isEmbeddedLDAPEnabled
public boolean isEmbeddedLDAPEnabled()
-
-