Package org.beangle.security.auth

Examples of org.beangle.security.auth.LockedException


public class AccountStatusChecker implements UserDetailChecker {

  protected TextResource textResource;

  public void check(UserDetail user) {
    if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"), user); }

    if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here


    this.postAuthenticationChecker = postAuthenticationChecks;
  }

  private class DefaultPreAuthenticationChecker implements UserDetailChecker {
    public void check(UserDetail user) {
      if (user.isAccountLocked()) { throw new LockedException(null, user); }

      if (!user.isEnabled()) { throw new DisabledException(null, user); }

      if (user.isAccountExpired()) { throw new AccountExpiredException(null, user); }
    }
View Full Code Here

    this.textResource = textResource;
  }

  private class DefaultPreAuthenticationChecker implements UserDetailChecker {
    public void check(UserDetail user) {
      if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
          "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"),
          user); }

      if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
          "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here

public class AccountStatusChecker implements UserDetailChecker {

  protected TextResource textResource;

  public void check(UserDetail user) {
    if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"), user); }

    if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here

public class AccountStatusChecker implements UserDetailChecker {

  protected TextResource textResource;

  public void check(UserDetail user) {
    if (user.isAccountLocked()) { throw new LockedException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.locked", "User account is locked"), user); }

    if (!user.isEnabled()) { throw new DisabledException(textResource.getText(
        "AbstractUserDetailsAuthenticationProvider.disabled", "User is disabled"), user); }
View Full Code Here

TOP

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

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.