Package org.apache.shiro.authc

Examples of org.apache.shiro.authc.ExpiredCredentialsException


            if (account.isLocked()) {
                throw new LockedAccountException("Account [" + account + "] is locked.");
            }
            if (account.isCredentialsExpired()) {
                String msg = "The credentials for account [" + account + "] are expired";
                throw new ExpiredCredentialsException(msg);
            }

        }

        return account;
View Full Code Here


   
    if( !account.isEnabled() )
      throw new LockedAccountException("用户账号已禁用!");
   
    if( account.isExpired() )
      throw new ExpiredCredentialsException("用户账号已过期!");
   
    Calendar now = Calendar.getInstance();
    Calendar lockedTime = account.getLastLoginLockTime();
    if( lockedTime != null ){
      int minutes = 10;
View Full Code Here

TOP

Related Classes of org.apache.shiro.authc.ExpiredCredentialsException

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.