Class LDAPServerConfigurationBuilder


  • public class LDAPServerConfigurationBuilder
    extends java.lang.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.
    • 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.FileNotFoundException
        Constructor 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.EmbeddingLDAPException
        Build 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()