Class ServerConfigMgr


  • public class ServerConfigMgr
    extends Object
    The class ServiceConfigMgr provides interfaces to set the directory server information such as hostname, port number, admin DN and password, and proxy user DN and password.
    • Constructor Detail

      • ServerConfigMgr

        public ServerConfigMgr()
                        throws Exception
        Constructor that get the serverconfig.xml file and gets the XML document.
        Throws:
        Exception
    • Method Detail

      • main

        public static void main​(String[] args)
      • setAdminUserPassword

        public void setAdminUserPassword​(String oldPassword,
                                         String newPassword)
                                  throws Exception
        Sets the admin user's password.
        Throws:
        Exception
      • setProxyUserPassword

        protected void setProxyUserPassword​(String oldPassword,
                                            String newPassword)
                                     throws Exception
        Sets the proxy user's password.
        Throws:
        Exception
      • save

        public void save()
                  throws Exception
        Stores the directory server configuration information to the file system.
        Throws:
        Exception