Package org.springframework.security.authentication

Examples of org.springframework.security.authentication.AuthenticationServiceException


          user.setName(StringUtils.isBlank(fbName) ? "No Name" : fbName);
          user.setPassword(new UUID().toString());
          user.setIdentifier(Config.FB_PREFIX.concat(fbID));
          String id = user.create();
          if (id == null) {
            throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
          }
        }
        userAuth = new UserAuthentication(user);
      }
    }
View Full Code Here


  public Authentication attemptAuthentication(HttpServletRequest request,
      HttpServletResponse response) throws AuthenticationException,
      IOException, ServletException {

    if (postOnly && !"POSTS".equals(request.getMethod())) {
      throw new AuthenticationServiceException("Authentication method not supported: " + request.getMethod());
    }

    // Get the username
    String username = StringUtils.trimToEmpty(request.getParameter(SPRING_SECURITY_FORM_USERNAME_KEY));
View Full Code Here

TOP

Related Classes of org.springframework.security.authentication.AuthenticationServiceException

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.