Package org.beangle.security.core.userdetail

Examples of org.beangle.security.core.userdetail.UsernameNotFoundException


      String name = assertion.getPrincipal().getName();
      final UserDetail userDetail = userDetailService.loadDetail(new UsernamePasswordAuthentication(
          name, null));
      if (null == userDetail) {
        logger.error("cannot load {}'s detail from system", name);
        throw new UsernameNotFoundException(StrUtils.concat("user ", name, " not found in system"));
      }
      userDetailChecker.check(userDetail);
      return new CasAuthentication(key, userDetail, auth.getCredentials(), userDetail.getAuthorities(),
          userDetail, assertion);
    } catch (final TicketValidationException e) {
View Full Code Here


    String username = (authentication.getPrincipal() == null) ? "NONE_PROVIDED" : authentication
        .getName();

    UserDetail user = retrieveUser(username, authentication);

    if (null == user) { throw new UsernameNotFoundException(); }
    preAuthenticationChecker.check(user);

    additionalAuthenticationChecks(user, authentication);

    postAuthenticationChecker.check(user);
View Full Code Here

    String username = (authentication.getPrincipal() == null) ? "NONE_PROVIDED"
        : authentication.getName();

    UserDetail user = retrieveUser(username, (UsernamePasswordAuthentication) authentication);

    if (null == user) { throw new UsernameNotFoundException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.badCredentials", "Bad credentials")); }
    preAuthenticationChecker.check(user);

    additionalAuthenticationChecks(user, (UsernamePasswordAuthentication) authentication);
View Full Code Here

      String name = assertion.getPrincipal();
      final UserDetail userDetail = userDetailService.loadDetail(new UsernamePasswordAuthentication(
          name, null));
      if (null == userDetail) {
        logger.error("cannot load {}'s detail from system", name);
        throw new UsernameNotFoundException(StrUtils.concat("user ", name, " not found in system"));
      }
      userDetailChecker.check(userDetail);
      return new CasAuthentication(key, userDetail, auth.getCredentials(), userDetail.getAuthorities(),
          userDetail, assertion);
    } catch (final TicketValidationException e) {
View Full Code Here

TOP

Related Classes of org.beangle.security.core.userdetail.UsernameNotFoundException

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.