@Override
  public boolean supports(Class<?> authentication) {
    return UsernamePasswordAuthenticationToken.class.isAssignableFrom(authentication);
  }
AmbariLocalAuthenticationProvider is an {@link org.springframework.security.authentication.AuthenticationProvider}
implementation used to authenticate users using username and password details from the local Ambari database.
<p>
Users will fail to authenticate, even if they supply the correct credentials if the account is locked out
by being disabled or locked due to too many consecutive failure.
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AmbariLocalAuthenticationProvider.java