public static SAMLNameID from(final NameIDType nameId) {
            val result = new SAMLNameID();
            result.setNameQualifier(nameId.getNameQualifier());
            result.setFormat(nameId.getFormat());
            result.setSpNameQualifier(nameId.getSPNameQualifier());
            result.setSpProviderId(nameId.getSPProvidedID());
            result.setValue(nameId.getValue());
            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