public void setConsecutiveFailures(Integer consecutiveFailures) {
    this.consecutiveFailures = consecutiveFailures;
  }
Sets the number of consecutive authentication failures since the last successful login.
<p>
This value may be used to throttle authentication attempts or lock out users. It is expected that
this value is reset to <code>0</code> when a successful authentication attempt was made.
<p>
For each failed authentication attempt, {@link #incrementConsecutiveFailures()} should be called
rather than explicitly setting an incremented value.

@param consecutiveFailures a number of consecutive authentication failures since the last successful login
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UserEntity.java