Examples of AuthenticationService


Examples of ca.eandb.jdcp.remote.AuthenticationService

   */
  public JobService getJobService() {
    if (service == null) {
      try {
        Registry registry = LocateRegistry.getRegistry(host, JdcpUtil.DEFAULT_PORT);
        AuthenticationService auth = (AuthenticationService) registry.lookup("AuthenticationService");
        service = auth.authenticate(username, password, JdcpUtil.PROTOCOL_VERSION_ID);
      } catch (NotBoundException e) {
        System.err.println("Job service not found at remote host.");
        System.exit(1);
      } catch (RemoteException e) {
        System.err.println("Could not connect to job service.");
View Full Code Here

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

Examples of com.bradmcevoy.http.AuthenticationService

      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

Examples of com.bradmcevoy.http.AuthenticationService

    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

Examples of com.bradmcevoy.http.AuthenticationService

  @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

Examples of com.ibm.sbt.services.client.AuthenticationService

        try {
            if(isAuthenticated()) {
                String authSvc = getAuthenticationService();
                if(StringUtil.isNotEmpty(authSvc)) {
                    // Emit a request to this URL and get the return code
                    AuthenticationService as = new AuthenticationService(this);
                    return as.isValidAuthentication(authSvc);
                }
                return true;
            }
        } catch (ClientServicesException e) {
        }
View Full Code Here

Examples of com.ibm.sbt.services.client.smartcloud.bss.AuthenticationService

      return basicEndpoint;
  }
     
    public AuthenticationService getAuthenticationService() {
      if (authenticationService == null) {
        authenticationService = new AuthenticationService(getBasicEndpoint());
      }
      return authenticationService;
    }
View Full Code Here

Examples of com.ibm.sbt.services.client.smartcloud.bss.AuthenticationService

    userCredential.setLoginName(loginName)
            .setNewPassword(password);
   
    System.out.println("Set one-time password: " + userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.setOneTimePassword(userCredential);
  }
View Full Code Here

Examples of com.ibm.sbt.services.client.smartcloud.bss.AuthenticationService

            .setNewPassword(newPassword)
            .setConfirmPassword(newPassword);
   
    System.out.println("Change password: " + userCredential.toJson());
   
    AuthenticationService authenticationService = getAuthenticationService();
    authenticationService.changePassword(userCredential);
    }
View Full Code Here

Examples of com.ibm.sbt.services.client.smartcloud.bss.AuthenticationService

      return basicEndpoint;
  }
     
    public AuthenticationService getAuthenticationService() {
      if (authenticationService == null) {
        authenticationService = new AuthenticationService(getBasicEndpoint());
      }
      return authenticationService;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.