Package org.opensaml.samlext.samlec

Examples of org.opensaml.samlext.samlec.GeneratedKey


*/
public class GeneratedKeyMarshaller extends XSBase64BinaryMarshaller {

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

        if (key.isSOAP11MustUnderstandXSBoolean() != null) {
            XMLHelper.marshallAttribute(GeneratedKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
                    key.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
        }
       
        if (key.getSOAP11Actor() != null) {
            XMLHelper.marshallAttribute(GeneratedKey.SOAP11_ACTOR_ATTR_NAME,
                    key.getSOAP11Actor(), domElement, false);
        }
    }
View Full Code Here


*/
public class GeneratedKeyUnmarshaller extends XSBase64BinaryUnmarshaller {

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

        QName attrName = XMLHelper.getNodeQName(attribute);
        if (GeneratedKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME.equals(attrName)) {
            key.setSOAP11MustUnderstand(XSBooleanValue.valueOf(attribute.getValue()));
        } else if (GeneratedKey.SOAP11_ACTOR_ATTR_NAME.equals(attrName)) {
            key.setSOAP11Actor(attribute.getValue());
        } else {
            super.processAttribute(samlObject, attribute);
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.samlext.samlec.GeneratedKey

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.