Package org.opensaml.xml.encryption

Examples of org.opensaml.xml.encryption.AgreementMethod


*/
public class AgreementMethodMarshaller extends AbstractXMLEncryptionMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AgreementMethod am = (AgreementMethod) xmlObject;

        if (am.getAlgorithm() != null) {
            domElement.setAttributeNS(null, AgreementMethod.ALGORITHM_ATTRIBUTE_NAME, am.getAlgorithm());
        }
    }
View Full Code Here


*/
public class AgreementMethodUnmarshaller extends AbstractXMLEncryptionUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AgreementMethod am = (AgreementMethod) xmlObject;

        if (attribute.getLocalName().equals(AgreementMethod.ALGORITHM_ATTRIBUTE_NAME)) {
            am.setAlgorithm(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        AgreementMethod am = (AgreementMethod) parentXMLObject;

        if (childXMLObject instanceof KANonce) {
            am.setKANonce((KANonce) childXMLObject);
        } else if (childXMLObject instanceof OriginatorKeyInfo) {
            am.setOriginatorKeyInfo((OriginatorKeyInfo) childXMLObject);
        } else if (childXMLObject instanceof RecipientKeyInfo) {
            am.setRecipientKeyInfo((RecipientKeyInfo) childXMLObject);
        } else {
            am.getUnknownXMLObjects().add(childXMLObject);
        }
    }
View Full Code Here

*/
public class AgreementMethodMarshaller extends AbstractXMLEncryptionMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AgreementMethod am = (AgreementMethod) xmlObject;

        if (am.getAlgorithm() != null) {
            domElement.setAttributeNS(null, AgreementMethod.ALGORITHM_ATTRIBUTE_NAME, am.getAlgorithm());
        }
    }
View Full Code Here

*/
public class AgreementMethodUnmarshaller extends AbstractXMLEncryptionUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AgreementMethod am = (AgreementMethod) xmlObject;

        if (attribute.getLocalName().equals(AgreementMethod.ALGORITHM_ATTRIBUTE_NAME)) {
            am.setAlgorithm(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        AgreementMethod am = (AgreementMethod) parentXMLObject;

        if (childXMLObject instanceof KANonce) {
            am.setKANonce((KANonce) childXMLObject);
        } else if (childXMLObject instanceof OriginatorKeyInfo) {
            am.setOriginatorKeyInfo((OriginatorKeyInfo) childXMLObject);
        } else if (childXMLObject instanceof RecipientKeyInfo) {
            am.setRecipientKeyInfo((RecipientKeyInfo) childXMLObject);
        } else {
            am.getUnknownXMLObjects().add(childXMLObject);
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xml.encryption.AgreementMethod

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.