Examples of NameIDFormat


Examples of org.opensaml.saml2.metadata.NameIDFormat

*/
public class NameIDFormatMarshaller extends AbstractSAMLObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
        NameIDFormat format = (NameIDFormat) samlObject;

        if (format.getFormat() != null) {
            XMLHelper.appendTextContent(domElement, format.getFormat());
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.NameIDFormat

*/
public class NameIDFormatUnmarshaller extends AbstractSAMLObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject samlObject, String elementContent) {
        NameIDFormat format = (NameIDFormat) samlObject;

        format.setFormat(elementContent);
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.NameIDFormat

    protected Collection<NameIDFormat> buildNameIDFormat() {

        SAMLObjectBuilder<NameIDFormat> builder = (SAMLObjectBuilder<NameIDFormat>) this.builderFactory
                .getBuilder(NameIDFormat.DEFAULT_ELEMENT_NAME);
        Collection<NameIDFormat> formats = new LinkedList<NameIDFormat>();
        NameIDFormat transientNameID = builder.buildObject();
        transientNameID.setFormat(NameIDType.TRANSIENT);
        formats.add(transientNameID);
        NameIDFormat persistentNameID = builder.buildObject();
        persistentNameID.setFormat(NameIDType.PERSISTENT);
        formats.add(persistentNameID);
        NameIDFormat emailNameID = builder.buildObject();
        emailNameID.setFormat(NameIDType.EMAIL);
        formats.add(emailNameID);
        NameIDFormat unspecNameID = builder.buildObject();
        unspecNameID.setFormat(NameIDType.UNSPECIFIED);
        formats.add(unspecNameID);
        return formats;
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.NameIDFormat

        super(namespaceURI, elementLocalName);
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
        NameIDFormat format = (NameIDFormat) samlObject;

        if (format.getFormat() != null) {
            XMLHelper.appendTextContent(domElement, format.getFormat());
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.NameIDFormat

        super(namespaceURI, elementLocalName);
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject samlObject, String elementContent) {
        NameIDFormat format = (NameIDFormat) samlObject;

        format.setFormat(elementContent);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.