public void setLocked(boolean locked) {
        this.locked = locked;
    }
Sets whether or not the account is locked and can be used to login.

@param locked <code>true</code> if this Account is locked and thus cannot be used to login, <code>false</code> otherwise.
core/src/main/java/org/apache/shiro/authc/SimpleAccount.java