Package org.opensaml.ws.wssecurity

Examples of org.opensaml.ws.wssecurity.EncodedString


*/
public class EncodedStringMarshaller extends AttributedStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        EncodedString encodedString = (EncodedString) xmlObject;
        if (!DatatypeHelper.isEmpty(encodedString.getEncodingType())){
            domElement.setAttributeNS(null, EncodedString.ENCODING_TYPE_ATTRIB_NAME, encodedString.getEncodingType());
        }
        super.marshallAttributes(xmlObject, domElement);
    }
View Full Code Here


*/
public class EncodedStringUnmarshaller extends AttributedStringUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        EncodedString encodedString= (EncodedString) xmlObject;
        if (EncodedString.ENCODING_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            encodedString.setEncodingType(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

*/
public class EncodedStringMarshaller extends AttributedStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        EncodedString encodedString = (EncodedString) xmlObject;
        if (!DatatypeHelper.isEmpty(encodedString.getEncodingType())){
            domElement.setAttributeNS(null, EncodedString.ENCODING_TYPE_ATTRIB_NAME, encodedString.getEncodingType());
        }
        super.marshallAttributes(xmlObject, domElement);
    }
View Full Code Here

*/
public class EncodedStringUnmarshaller extends AttributedStringUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        EncodedString encodedString= (EncodedString) xmlObject;
        if (EncodedString.ENCODING_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            encodedString.setEncodingType(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.ws.wssecurity.EncodedString

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.