private static String getAttribute()

in src/main/java/com/googlesource/gerrit/plugins/saml/SamlWebFilter.java [245:252]


  private static String getAttribute(SAML2Profile user, String attrName) {
    // TODO(davido): Replace with the invocation from upstream method.
    List<String> names = extractAttributeValues(user, attrName);
    if (names != null && !names.isEmpty()) {
      return names.get(0);
    }
    return null;
  }