Examples of AuthzDecisionQuery


Examples of org.opensaml.saml2.core.AuthzDecisionQuery

*/
public class AuthzDecisionQueryMarshaller extends SubjectQueryMarshaller {

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

        if (query.getResource() != null) {
            domElement.setAttributeNS(null, AuthzDecisionQuery.RESOURCE_ATTRIB_NAME, query.getResource());
        }

        super.marshallAttributes(samlObject, domElement);
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthzDecisionQuery

*/
public class AuthzDecisionQueryUnmarshaller extends SubjectQueryUnmarshaller {

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

        if (attribute.getLocalName().equals(AuthzDecisionQuery.RESOURCE_ATTRIB_NAME)) {
            query.setResource(attribute.getValue());
        } else {
            super.processAttribute(samlObject, attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthzDecisionQuery

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
            throws UnmarshallingException {
        AuthzDecisionQuery query = (AuthzDecisionQuery) parentSAMLObject;

        if (childSAMLObject instanceof Action) {
            query.getActions().add((Action) childSAMLObject);
        } else if (childSAMLObject instanceof Evidence) {
            query.setEvidence((Evidence) childSAMLObject);
        } else {
            super.processChildElement(parentSAMLObject, childSAMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthzDecisionQuery

        super(namespaceURI, elementLocalName);
    }

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

        if (query.getResource() != null)
            domElement.setAttributeNS(null, AuthzDecisionQuery.RESOURCE_ATTRIB_NAME, query.getResource());

        super.marshallAttributes(samlObject, domElement);
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthzDecisionQuery

        super(namespaceURI, elementLocalName);
    }

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

        if (attribute.getLocalName().equals(AuthzDecisionQuery.RESOURCE_ATTRIB_NAME))
            query.setResource(attribute.getValue());
        else
            super.processAttribute(samlObject, attribute);
    }
View Full Code Here

Examples of org.opensaml.saml2.core.AuthzDecisionQuery

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
            throws UnmarshallingException {
        AuthzDecisionQuery query = (AuthzDecisionQuery) parentSAMLObject;

        if (childSAMLObject instanceof Action)
            query.getActions().add((Action) childSAMLObject);
        else if (childSAMLObject instanceof Evidence)
            query.setEvidence((Evidence) childSAMLObject);
        else
            super.processChildElement(parentSAMLObject, childSAMLObject);
    }
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.