Package org.opensaml.ws.wstrust

Examples of org.opensaml.ws.wstrust.RequestSecurityToken


*/
public class RequestSecurityTokenMarshaller extends AbstractWSTrustObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
        if (rst.getContext() != null) {
            domElement.setAttributeNS(null, RequestSecurityToken.CONTEXT_ATTRIB_NAME, rst.getContext());
        }
       
        XMLHelper.marshallAttributeMap(rst.getUnknownAttributes(), domElement);
    }
View Full Code Here


*/
public class RequestSecurityTokenUnmarshaller extends AbstractWSTrustObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
        if (RequestSecurityToken.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
            rst.setContext(attribute.getValue());
        } else {
            XMLHelper.unmarshallToAttributeMap(rst.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        RequestSecurityToken rst = (RequestSecurityToken) parentXMLObject;
        rst.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class RequestSecurityTokenUnmarshaller extends AbstractWSTrustObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
        if (RequestSecurityToken.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
            rst.setContext(attribute.getValue());
        } else {
            XMLHelper.unmarshallToAttributeMap(rst.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        RequestSecurityToken rst = (RequestSecurityToken) parentXMLObject;
        rst.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class RequestSecurityTokenMarshaller extends AbstractWSTrustObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
        if (rst.getContext() != null) {
            domElement.setAttributeNS(null, RequestSecurityToken.CONTEXT_ATTRIB_NAME, rst.getContext());
        }
       
        XMLHelper.marshallAttributeMap(rst.getUnknownAttributes(), domElement);
    }
View Full Code Here

TOP

Related Classes of org.opensaml.ws.wstrust.RequestSecurityToken

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.