Package com.bradmcevoy.http

Examples of com.bradmcevoy.http.AuthenticationService


      private AuthenticationService getAuthService() {
      if (authService == null) {
        List<AuthenticationHandler> handlers =
          new ArrayList<AuthenticationHandler>();
        handlers.add(new BasicAuthHandler());
        authService = new AuthenticationService(handlers);
      }
      return authService;
    }
View Full Code Here


      WebdavUserSecurityManager sm = inject(new WebdavUserSecurityManager(ofy));
      NonceProvider np = new AppEngineMemcacheNonceProvider(10*60*60);
      List<AuthenticationHandler> authHandlers = new ArrayList<AuthenticationHandler>();
      authHandlers.add(new SecurityManagerBasicAuthHandler(sm));
      authHandlers.add(new SecurityManagerDigestAuthenticationHandler(np, sm));
      AuthenticationService authSvc = new AuthenticationService(authHandlers);

      DefaultWebDavResponseHandler respHandler = new DefaultWebDavResponseHandler(authSvc);
      respHandler.setBuffering(BUFFERING.always);
      httpManager = new ServletHttpManager(fact, respHandler, authSvc);
      httpManager.addFilter(0, new PreAuthenticationFilter(respHandler, sm, np));
View Full Code Here

    SsoResourceFactory ssoResourceFactory = new SsoResourceFactory(rf, ssoSessionProvider);
    SsoAuthenticationHandler ssoAuthenticationHandler = new SsoAuthenticationHandler();
    List<AuthenticationHandler> ssoHandlers = new ArrayList<AuthenticationHandler>();
    ssoHandlers.add(ssoAuthenticationHandler);
   
    AuthenticationService authenticationService = new AuthenticationService();       
    authenticationService.setExtraHandlers(ssoHandlers);

    WebDavResponseHandler respHandler = new DefaultWebDavResponseHandler(authenticationService);

   
    httpManager = new HttpManager(ssoResourceFactory, respHandler, authenticationService);
View Full Code Here

  @Override
  public void init() {
    log.debug("init");
    if( authenticationService == null ) {
      authenticationService = new AuthenticationService();
      sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
      resourceFactory = new HrResourceFactory(sessionFactory);     
      checkInitialData();
    }
  }
View Full Code Here

    log.debug("WebDAV Server initialization");
    if( authenticationService == null ) {
      dbConnection = new DBConnection()//PostgreSQL connection
      ArrayList<AuthenticationHandler> authHandls = new ArrayList<AuthenticationHandler>();
      authHandls.add(new BasicAuthHandler());
      authenticationService = new AuthenticationService(authHandls);
      //TODO sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
      resourceFactory = new ResourcesManager();     
      dataInitializing();
    }
  }
View Full Code Here

   
    if(logger.isInfoEnabled())
      logger.info("init ContentResourceFactoryFactory");
   
    if( authenticationService == null ) {
      authenticationService = new AuthenticationService();
      resourceFactory = new RepositoryResourceFactory();     
    }
  }
View Full Code Here

    throw new IllegalArgumentException("unsupported tenancy mode: " + mode);

  }

  public WebDavResponseHandler createResponseHandler() {
    return new DefaultWebDavResponseHandler(new AuthenticationService());
  }
View Full Code Here

        Http11Protocol p = (Http11Protocol) x;
        for (Handler h : x.getHandlers()) {
          if (h instanceof com.bradmcevoy.http.http11.GetHandler) {
            httpManager.addFilter(0, new GetHandler(
                new DefaultWebDavResponseHandler(
                    new AuthenticationService()), p
                    .getHandlerHelper()));
            break handlers;
          }
        }
      }
View Full Code Here

TOP

Related Classes of com.bradmcevoy.http.AuthenticationService

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.