Package org.jboss.seam.security

Examples of org.jboss.seam.security.Identity.authenticate()


        Identity ids = Identity.instance();
        ids.getCredentials().setUsername(usr);
        ids.getCredentials().setPassword(pwd);

        try {
            ids.authenticate();
        } catch (LoginException e) {
            throw new ServletException(new IllegalArgumentException("Unable to authenticate user."));
        }

        log.debug("Successful login");
View Full Code Here


         @Override
         public void process() throws ServletException, IOException, LoginException
         {
            Identity identity = Identity.instance();
            identity.getCredentials().setUsername(username);
            identity.authenticate();
         }
      }.run()
   }
  
   private String[] split(String toSplit, String delimiter)
View Full Code Here

   private void authenticate(HttpServletRequest request, final String username)
      throws ServletException, IOException, LoginException
   {
      Identity identity = Identity.instance();
      identity.getCredentials().setUsername(username);
      identity.authenticate();
   }
  
   private String[] split(String toSplit, String delimiter)
   {
      if (delimiter.length() != 1)
View Full Code Here

         @Override
         public void process() throws ServletException, IOException, LoginException
         {
            Identity identity = Identity.instance();
            identity.getCredentials().setUsername(username);
            identity.authenticate();
         }
      }.run()
   }
  
   private String[] split(String toSplit, String delimiter)
View Full Code Here

  
   private void authenticate(HttpServletRequest request, final String username) throws ServletException, IOException, LoginException
   {
      Identity identity = Identity.instance();
      identity.getCredentials().setUsername(username);
      identity.authenticate();
   }
  
   private String[] split(String toSplit, String delimiter)
   {
      if (delimiter.length() != 1)
View Full Code Here

           // return (FileManagerUtils) Component.getInstance( "fileManager" );
            Identity ids = Identity.instance();
            ids.getCredentials().setUsername(usr);
            ids.getCredentials().setPassword(pwd);
            try {
                ids.authenticate();
                log.info(usr + " authenticated for rest api");
              
                return true;
            } catch (LoginException e) {
                log.warn("Unable to authenticate for rest api: " + usr);
View Full Code Here

     */
    private String checkAutoLogin() {
        Identity id = Identity.instance();
        id.getCredentials().setUsername( GUEST_LOGIN );
        try {
            id.authenticate();
        } catch ( LoginException e ) {
            return null;
        }
        if ( id.isLoggedIn() ) {
            return id.getCredentials().getUsername();
View Full Code Here

           // return (FileManagerUtils) Component.getInstance( "fileManager" );
            Identity ids = Identity.instance();
            ids.getCredentials().setUsername(usr);
            ids.getCredentials().setPassword(pwd);
            try {
                ids.authenticate();
                log.info(usr + " authenticated for rest api");
              
                return true;
            } catch (LoginException e) {
                log.warn("Unable to authenticate for rest api: " + usr);
View Full Code Here

     */
    private String checkAutoLogin() {
        Identity id = Identity.instance();
        id.getCredentials().setUsername( GUEST_LOGIN );
        try {
            id.authenticate();
        } catch ( LoginException e ) {
            return null;
        }
        if ( id.isLoggedIn() ) {
            return id.getCredentials().getUsername();
View Full Code Here

         @Override
         public void process() throws ServletException, IOException, LoginException
         {
            Identity identity = Identity.instance();
            identity.setUsername(username);
            identity.authenticate();
         }
      }.run()
   }
  
   private String[] split(String toSplit, String delimiter)
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.