Package com.sun.jdmk.comm

Examples of com.sun.jdmk.comm.AuthInfo


            int port = glob.getProperty().get("xmlBlaster/jmx/HtmlAdaptor/port", 8082);
            String loginName = glob.getProperty().get("xmlBlaster/jmx/HtmlAdaptor/loginName", (String)null);
            String password = glob.getProperty().get("xmlBlaster/jmx/HtmlAdaptor/password", "secret");

            if (loginName != null) {
               AuthInfo authInfos[] = { new AuthInfo(loginName, password) };
               this.html = new HtmlAdaptorServer(port, authInfos);
            }
            else {
               this.html = new HtmlAdaptorServer(port);
            }
View Full Code Here


  public void openServer(IConfig config) {
    if (!isOpen() || server != null) return;
    server = new HtmlAdaptorServer(config.getInt("port", 1098));
   
    for (IConfig cuser : config.getConfigBundle("user")) {
      server.addUserAuthenticationInfo(new AuthInfo(cuser.getExtracted("name"), MPassword.decode(cuser.getExtracted("password")) ));
    }
   
    // TODO load user auth infos into server
    //server.setMBeanServer(mbs);
    try {
View Full Code Here

   
   
    public void start() {
        this.server = MBeanServerFactory.createMBeanServer("xcp");
        this.html = new HtmlAdaptorServer(this.port);
        this.html.addUserAuthenticationInfo(new AuthInfo(this.user, this.password));
       
        try {
            //register the html-adaptor
            ObjectName on = new ObjectName("Adaptor:name=html,port=8888");
            this.server.registerMBean(this.html, on);
View Full Code Here

      }
          mBeanServer.registerMBean(htmlAdaptor, adaptorObjectName);
      if (username != null && username.length() > 0 &&
              password != null && password.length() > 0) {
          logger.log(Level.INFO, "JMX HTML interface password protected");
          htmlAdaptor.addUserAuthenticationInfo(new AuthInfo(username, password));
      } else {
              logger.log(Level.INFO, "JMX HTML interface password NOT protected");
      }

      ObjectName parserObjectName = new ObjectName(PARSER_NAME);
View Full Code Here

TOP

Related Classes of com.sun.jdmk.comm.AuthInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.