public static SAMLNameID from(final SAMLAttribute attribute) {
            val result = new SAMLNameID();
            result.setValue(attribute.getAttributeValues().get(0));
            result.setFormat(attribute.getNameFormat());
            result.setNameQualifier(attribute.getName());
            result.setSpNameQualifier(attribute.getFriendlyName());
            return result;
        }
<p>Constructor for SAML2AuthenticationCredentials.</p>

@param nameId a {@link SAML2AuthenticationCredentials.SAMLNameID} object
@param issuerId a {@link String} object
@param samlAttributes a {@link List} object
@param conditions a {@link Conditions} object
@param sessionIndex a {@link String} object
@param authnContexts a {@link List} object
@param authnContextAuthorities a {@link List} object
@param inResponseTo a {@link String} object
pac4j-saml/src/main/java/org/pac4j/saml/credentials/SAML2AuthenticationCredentials.java