Search in sources :

Example 1 with OpenSamlXmlObjectFactory

use of uk.gov.ida.saml.core.OpenSamlXmlObjectFactory in project verify-hub by alphagov.

the class AuthnResponseFactory method buildNameID.

private NameID buildNameID(String id) {
    NameID nameId = new OpenSamlXmlObjectFactory().createNameId(id);
    nameId.setFormat(NameIDType.PERSISTENT);
    return nameId;
}
Also used : OpenSamlXmlObjectFactory(uk.gov.ida.saml.core.OpenSamlXmlObjectFactory) NameID(org.opensaml.saml.saml2.core.NameID)

Aggregations

NameID (org.opensaml.saml.saml2.core.NameID)1 OpenSamlXmlObjectFactory (uk.gov.ida.saml.core.OpenSamlXmlObjectFactory)1