Package org.dbwiki.web.security

Examples of org.dbwiki.web.security.WikiAuthenticator


      int styleSheetVersion = rs.getInt(RelDatabaseColCSS);
      int urlDecodingVersion = RelConfigFileColFileVersionValUnknown;
      if (org.dbwiki.lib.JDBC.hasColumn(rs, RelDatabaseColURLDecoding)) {
        urlDecodingVersion = rs.getInt(RelDatabaseColURLDecoding);
      }
      WikiAuthenticator authenticator = new WikiAuthenticator("/" + name, rs.getInt(RelDatabaseColAuthentication), _users);
      int autoSchemaChanges = rs.getInt(RelDatabaseColAutoSchemaChanges);
      ConfigSetting setting = new ConfigSetting(layoutVersion, templateVersion, styleSheetVersion, urlDecodingVersion);
      _wikiListing.add(new DatabaseWikiHttpHandler(id, name, title, authenticator, autoSchemaChanges, setting, _connector, this));
    }
    rs.close();
View Full Code Here


  public void start() throws java.io.IOException {
    _webServer = HttpServer.create(new InetSocketAddress(_port), _backlog);
    _webServer.setExecutor(Executors.newFixedThreadPool(_threadCount));

    HttpContext context = _webServer.createContext("/", this);
    context.setAuthenticator(new WikiAuthenticator("/", _authenticationMode, _users));

    for (int iWiki = 0; iWiki < _wikiListing.size(); iWiki++) {
      DatabaseWikiHttpHandler wiki = _wikiListing.get(iWiki);
      context = _webServer.createContext("/" + wiki.name(), wiki);
      context.setAuthenticator(wiki.authenticator());
View Full Code Here

    try {
     
      wikiID = r.createDatabase(con, versionIndex);
      con.commit();

      WikiAuthenticator authenticator = new WikiAuthenticator("/" + name, authenticationMode, _users);
      DatabaseWikiHttpHandler wiki = new DatabaseWikiHttpHandler(wikiID, name, title, authenticator, autoSchemaChanges, _connector, this,
                  con, versionIndex);

      // this should now only be called when starting a web server
      assert(_webServer != null);
View Full Code Here

TOP

Related Classes of org.dbwiki.web.security.WikiAuthenticator

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.