Examples of validateUser()


Examples of org.corrib.s3b.sscf.imports.FlickrBookmarksImport.validateUser()

          if(request.getSession().getAttribute("credentialsOnly") != null
              && (Boolean)request.getSession().getAttribute("credentialsOnly") == true){
            request.getSession().setAttribute("credentialsOnly", null);
            BookmarksImport bi = BookmarksImport.getBookmarksImport(BookmarkingSource.FLICKR.getType(), username, frob, viewer, getServiceAddr(request));
            FlickrBookmarksImport fbi = (FlickrBookmarksImport) bi;
            if(fbi.validateUser(frob)){
              try {
            UserCredentials.getInstance().storeCredentials(viewer, BookmarkingSource.FLICKR, fbi.getLogin(), fbi.getPassword());
          } catch (BadCredentialsException e) {
            logger.log(Level.WARNING, "",e);
          }
View Full Code Here

Examples of org.corrib.s3b.sscf.imports.FlickrBookmarksImport.validateUser()

     
      bi = BookmarksImport.getBookmarksImport(BookmarkingSource.FLICKR.getType(), username, frob, viewer, serviceAddr);
     
      FlickrBookmarksImport fbi = ((FlickrBookmarksImport)bi);
      //if user is valid then LOGIN is also set
      if(fbi.validateUser(frob)){
        fbi.start();
        result[0] = TaskStatusInfo.STARTED.getMessage();
       
      }
     
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

            throw new LoginException("No Authenticator component found, check your configuration");

         Credential[] credentials =
            new Credential[]{new UsernameCredential(username), new PasswordCredential(password)};

         String userId = authenticator.validateUser(credentials);
         Identity identity = authenticator.createIdentity(userId);

         sharedState.put("exo.security.identity", identity);
         sharedState.put("javax.security.auth.login.name", userId);
         // TODO use PasswordCredential wrapper
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

               throw new LoginException("No Authenticator component found, check your configuration");

            Credential[] credentials =
               new Credential[]{new UsernameCredential(username), new PasswordCredential(password)};

            String userId = authenticator.validateUser(credentials);
            identity = authenticator.createIdentity(userId);
            sharedState.put("javax.security.auth.login.name", userId);
            // TODO use PasswordCredential wrapper
            subject.getPrivateCredentials().add(password);
            subject.getPublicCredentials().add(new UsernameCredential(username));
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

         throw new LoginException("No Authenticator component found, check your configuration");

      Credential[] credentials =
         new Credential[]{new UsernameCredential(this.userName), new PasswordCredential(this.userPass)};

      this.userId = authenticator.validateUser(credentials);
      Identity identity = authenticator.createIdentity(this.userId);
      identityRegistry.register(identity);

      ConversationState state = new ConversationState(identity);
      // keep subject as attribute in ConversationState
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

               throw new LoginException("No Authenticator component found, check your configuration");

            Credential[] credentials =
               new Credential[]{new UsernameCredential(username), new PasswordCredential(password)};

            String userId = authenticator.validateUser(credentials);
            identity = authenticator.createIdentity(userId);
            sharedState.put("javax.security.auth.login.name", userId);
            // TODO use PasswordCredential wrapper
            subject.getPrivateCredentials().add(password);
            subject.getPublicCredentials().add(new UsernameCredential(username));
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

            Authenticator authenticator = uiForm.getApplicationComponent(Authenticator.class);
            boolean authenticated;
            try {
                UsernameCredential usernameCred = new UsernameCredential(username);
                PasswordCredential passwordCred = new PasswordCredential(currentPass);
                authenticator.validateUser(new Credential[] { usernameCred, passwordCred });
                authenticated = true;
            } catch (Exception ex) {
                authenticated = false;
            }
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

            if (authenticator == null)
            {
               throw new LoginException("No Authenticator component found, check your configuration");
            }

            String userId = authenticator.validateUser(getCredentials());

            identity = authenticator.createIdentity(userId);
            sharedState.put("javax.security.auth.login.name", userId);
            // TODO use PasswordCredential wrapper
            subject.getPrivateCredentials().add(getPassword());
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

            if (authenticator == null)
            {
               throw new LoginException("No Authenticator component found, check your configuration");
            }

            String userId = authenticator.validateUser(getCredentials());

            identity = authenticator.createIdentity(userId);
            sharedState.put("javax.security.auth.login.name", userId);
            subject.getPrivateCredentials().add(getPassword());
            subject.getPublicCredentials().add(getUsername());
View Full Code Here

Examples of org.exoplatform.services.security.Authenticator.validateUser()

            if (authenticator == null)
            {
               throw new LoginException("No Authenticator component found, check your configuration");
            }

            String userId = authenticator.validateUser(getCredentials());

            identity = authenticator.createIdentity(userId);
            sharedState.put("javax.security.auth.login.name", userId);
            subject.getPrivateCredentials().add(getPassword());
            subject.getPublicCredentials().add(getUsername());
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.