Package org.opensaml.saml1.core

Examples of org.opensaml.saml1.core.Action


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

        if (Action.NAMESPACEATTRIB_NAME.equals(attribute.getLocalName())) {
            Action action = (Action) samlObject;
            action.setNamespace(attribute.getValue());
        } else {
            super.processAttribute(samlObject, attribute);
        }
    }
View Full Code Here


        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject samlObject, String elementContent) {
        Action action = (Action) samlObject;
        action.setContents(elementContent);
    }
View Full Code Here

public class ActionMarshaller extends AbstractSAMLObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException {

        Action action = (Action) samlElement;

        if (action.getNamespace() != null) {
            domElement.setAttributeNS(null, Action.NAMESPACEATTRIB_NAME, action.getNamespace());
        }
    }
View Full Code Here

        }
    }

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

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

                authDecision.setResource(decisionStatementBean.getResource());
                authDecision.setDecision(transformDecisionType(decisionStatementBean.getDecision()));

                for (ActionBean actionBean : decisionStatementBean.getActions()) {
                    Action actionElement = createSamlv1Action(actionBean);
                    authDecision.getActions().add(actionElement);
                }
               
                if (decisionStatementBean.getEvidence() instanceof Evidence) {                                   
                    authDecision.setEvidence((Evidence)decisionStatementBean.getEvidence());
View Full Code Here

        if (actionElementV1Builder == null) {
            actionElementV1Builder = (SAMLObjectBuilder<Action>)
                builderFactory.getBuilder(Action.DEFAULT_ELEMENT_NAME);
        }

        Action actionElement = actionElementV1Builder.buildObject();
        actionElement.setNamespace(actionBean.getActionNamespace());
        actionElement.setContents(actionBean.getContents());

        return actionElement;
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException {

        Action action = (Action) samlElement;

        if (action.getNamespace() != null) {
            domElement.setAttributeNS(null, Action.NAMESPACEATTRIB_NAME, action.getNamespace());
        }
    }
View Full Code Here

        }
    }

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

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

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

        if (Action.NAMESPACEATTRIB_NAME.equals(attribute.getLocalName())) {
            Action action = (Action) samlObject;
            action.setNamespace(attribute.getValue());
        } else {
            super.processAttribute(samlObject, attribute);
        }
    }
View Full Code Here

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject samlObject, String elementContent) {
        Action action = (Action) samlObject;
        action.setContents(elementContent);
    }
View Full Code Here

TOP

Related Classes of org.opensaml.saml1.core.Action

Copyright © 2018 www.massapicom. 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.