Examples of IDPEntry


Examples of org.opensaml.saml2.core.IDPEntry

*/
public class IDPEntryUnmarshaller extends AbstractSAMLObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
        IDPEntry entry = (IDPEntry) samlObject;

        if (attribute.getLocalName().equals(IDPEntry.PROVIDER_ID_ATTRIB_NAME)) {
            entry.setProviderID(attribute.getValue());
        } else if (attribute.getLocalName().equals(IDPEntry.NAME_ATTRIB_NAME)) {
            entry.setName(attribute.getValue());
        } else if (attribute.getLocalName().equals(IDPEntry.LOC_ATTRIB_NAME)) {
            entry.setLoc(attribute.getValue());
        } else {
            super.processAttribute(samlObject, attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.IDPEntry

*/
public class IDPEntryMarshaller extends AbstractSAMLObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
        IDPEntry entry = (IDPEntry) samlObject;

        if (entry.getProviderID() != null) {
            domElement.setAttributeNS(null, IDPEntry.PROVIDER_ID_ATTRIB_NAME, entry.getProviderID());
        }
        if (entry.getName() != null) {
            domElement.setAttributeNS(null, IDPEntry.NAME_ATTRIB_NAME, entry.getName());
        }
        if (entry.getLoc() != null) {
            domElement.setAttributeNS(null, IDPEntry.LOC_ATTRIB_NAME, entry.getLoc());
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.IDPEntry

        super(namespaceURI, elementLocalName);
    }

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
        IDPEntry entry = (IDPEntry) samlObject;

        if (entry.getProviderID() != null)
            domElement.setAttributeNS(null, IDPEntry.PROVIDER_ID_ATTRIB_NAME, entry.getProviderID());
        if (entry.getName() != null)
            domElement.setAttributeNS(null, IDPEntry.NAME_ATTRIB_NAME, entry.getName());
        if (entry.getLoc() != null)
            domElement.setAttributeNS(null, IDPEntry.LOC_ATTRIB_NAME, entry.getLoc());
    }
View Full Code Here

Examples of org.opensaml.saml2.core.IDPEntry

        super(namespaceURI, elementLocalName);
    }

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
        IDPEntry entry = (IDPEntry) samlObject;

        if (attribute.getLocalName().equals(IDPEntry.PROVIDER_ID_ATTRIB_NAME))
            entry.setProviderID(attribute.getValue());
        else if (attribute.getLocalName().equals(IDPEntry.NAME_ATTRIB_NAME))
            entry.setName(attribute.getValue());
        else if (attribute.getLocalName().equals(IDPEntry.LOC_ATTRIB_NAME))
            entry.setLoc(attribute.getValue());
        else
            super.processAttribute(samlObject, attribute);
    }
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.