Package org.beangle.security.auth

Examples of org.beangle.security.auth.BadCredentialsException


      }
      userDetailChecker.check(userDetail);
      return new CasAuthentication(key, userDetail, auth.getCredentials(), userDetail.getAuthorities(),
          userDetail, assertion);
    } catch (final TicketValidationException e) {
      throw new BadCredentialsException("Bad credentials :" + auth.getCredentials().toString(), e);
    }
  }
View Full Code Here


  public Authentication doAuthentication(Authentication authentication)
      throws AuthenticationException {
    if (grantAccess) {
      return authentication;
    } else {
      throw new BadCredentialsException("MockAuthenticationManager instructed to deny access");
    }
  }
View Full Code Here

    // If an existing CasAuthenticationToken, just check we created it
    if (casauth.isAuthenticated()) {
      if (key.hashCode() == casauth.getKeyHash()) {
        return authentication;
      } else {
        throw new BadCredentialsException(textResource.getText(
            "CasAuthenticationProvider.incorrectKey",
            "The presented CasAuthenticationToken does not contain the expected key"));
      }
    }
    // Ensure credentials are presented
    if (StringUtils.isEmpty(String.valueOf(casauth.getCredentials()))) { throw new BadCredentialsException(
        textResource.getText("CasAuthenticationProvider.noServiceTicket",
            "Failed to provide a CAS service ticket to validate")); }
    boolean stateless = false;
    if (CAS_STATELESS_IDENTIFIER.equals(casauth.getPrincipal())) {
      stateless = true;
View Full Code Here

      userDetailChecker.check(userDetails);
      return new CasAuthentication(key, userDetails, auth.getCredentials(),
          userDetails.getAuthorities(), userDetails, assertion);
    } catch (final TicketValidationException e) {
      logger.error("Bad credentials :" + auth.getCredentials().toString(), e);
      throw new BadCredentialsException("", e);
    }
  }
View Full Code Here

  public Authentication doAuthentication(Authentication authentication)
      throws AuthenticationException {
    if (grantAccess) {
      return authentication;
    } else {
      throw new BadCredentialsException("MockAuthenticationManager instructed to deny access");
    }
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.auth.BadCredentialsException

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.