@Override
    public int hashCode() {
      int result = principal.hashCode();
      result = 31 * result + (realm != null ? realm.hashCode() : 0);
      result = 31 * result + components.hashCode();
      return result;
    }
Get the associated realm.

@return the associated realm
ambari-server/src/main/java/org/apache/ambari/server/controller/AuthToLocalBuilder.java