Package org.opensaml.ws.wstrust

Examples of org.opensaml.ws.wstrust.BinarySecret


*/
public class BinarySecretUnmarshaller extends XSBase64BinaryUnmarshaller {

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


*/
public class BinarySecretMarshaller extends XSBase64BinaryMarshaller {

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

*/
public class BinarySecretUnmarshaller extends XSBase64BinaryUnmarshaller {

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

*/
public class BinarySecretMarshaller extends XSBase64BinaryMarshaller {

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

TOP

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

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.