Examples of AuthnContextDecl


Examples of org.opensaml.saml2.core.AuthnContextDecl

public class AuthnContextDeclUnmarshaller extends AbstractSAMLObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) parentXMLObject;

        authnCtcDecl.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

        authnCtcDecl.getUnknownXMLObjects().add(childXMLObject);
    }

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject;

        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());

        if (attribute.isId()) {
            authnCtcDecl.getUnknownAttributes().registerID(attribQName);
        }

        authnCtcDecl.getUnknownAttributes().put(attribQName, attribute.getValue());
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

        authnCtcDecl.getUnknownAttributes().put(attribQName, attribute.getValue());
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject;

        authnCtcDecl.setTextContent(elementContent);
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

*/
public class AuthnContextDeclMarshaller extends AbstractSAMLObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AuthnContextDecl authnCtxDecl = (AuthnContextDecl) xmlObject;

        Attr attribute;
        for (Entry<QName, String> entry : authnCtxDecl.getUnknownAttributes().entrySet()) {
            attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), entry.getKey());
            attribute.setValue(entry.getValue());
            domElement.setAttributeNodeNS(attribute);
            if (Configuration.isIDAttribute(entry.getKey())
                    || authnCtxDecl.getUnknownAttributes().isIDAttribute(entry.getKey())) {
                attribute.getOwnerElement().setIdAttributeNode(attribute, true);
            }
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

        }
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AuthnContextDecl authnCtxDecl = (AuthnContextDecl) xmlObject;

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

Examples of org.opensaml.saml2.core.AuthnContextDecl

        super(targetNamespaceURI, targetLocalName);
    }

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AuthnContextDecl authnCtxDecl = (AuthnContextDecl) xmlObject;

        Attr attribute;
        for (Entry<QName, String> entry : authnCtxDecl.getUnknownAttributes().entrySet()) {
            attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), entry.getKey());
            attribute.setValue(entry.getValue());
            domElement.setAttributeNodeNS(attribute);
            if (Configuration.isIDAttribute(entry.getKey())
                    || authnCtxDecl.getUnknownAttributes().isIDAttribute(entry.getKey())) {
                attribute.getOwnerElement().setIdAttributeNode(attribute, true);
            }
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

        }
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AuthnContextDecl authnCtxDecl = (AuthnContextDecl) xmlObject;

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

Examples of org.opensaml.saml2.core.AuthnContextDecl

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) parentXMLObject;

        authnCtcDecl.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

        authnCtcDecl.getUnknownXMLObjects().add(childXMLObject);
    }

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject;

        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());

        if (attribute.isId()) {
            authnCtcDecl.getUnknownAttributes().registerID(attribQName);
        }

        authnCtcDecl.getUnknownAttributes().put(attribQName, attribute.getValue());
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthnContextDecl

        authnCtcDecl.getUnknownAttributes().put(attribQName, attribute.getValue());
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject;

        authnCtcDecl.setTextContent(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.