public String getUsername() {
    return username;
  }
AuthenticationMethodNotAllowedException is an AuthenticationException implementation to be thrown
when the specified authentication method is not allowed for the relevant user.
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/AuthenticationMethodNotAllowedException.java