001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022:
023: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b24-ea3
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.02.03 at 04:10:33 PM IST
028: //
029:
030: package com.sun.xml.security.core.xenc;
031:
032: import java.util.ArrayList;
033: import java.util.List;
034: import javax.xml.bind.JAXBElement;
035: import javax.xml.bind.annotation.XmlAccessType;
036: import javax.xml.bind.annotation.XmlAccessorType;
037: import javax.xml.bind.annotation.XmlAnyElement;
038: import javax.xml.bind.annotation.XmlAttribute;
039: import javax.xml.bind.annotation.XmlElementRef;
040: import javax.xml.bind.annotation.XmlElementRefs;
041: import javax.xml.bind.annotation.XmlMixed;
042: import javax.xml.bind.annotation.XmlType;
043:
044: /**
045: * <p>Java class for AgreementMethodType complex type.
046: *
047: * <p>The following schema fragment specifies the expected content contained within this class.
048: *
049: * <pre>
050: * <complexType name="AgreementMethodType">
051: * <complexContent>
052: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
053: * <sequence>
054: * <element name="KA-Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
055: * <any/>
056: * <element name="OriginatorKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
057: * <element name="RecipientKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
058: * </sequence>
059: * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
060: * </restriction>
061: * </complexContent>
062: * </complexType>
063: * </pre>
064: *
065: *
066: */
067: @XmlAccessorType(XmlAccessType.FIELD)
068: @XmlType(name="AgreementMethodType",propOrder={"content"})
069: public class AgreementMethodType {
070:
071: @XmlElementRefs({@XmlElementRef(name="OriginatorKeyInfo",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="RecipientKeyInfo",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="KA-Nonce",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class)})
072: @XmlMixed
073: @XmlAnyElement(lax=true)
074: protected List<Object> content;
075: @XmlAttribute(name="Algorithm",required=true)
076: protected String algorithm;
077:
078: /**
079: * Gets the value of the content property.
080: *
081: * <p>
082: * This accessor method returns a reference to the live list,
083: * not a snapshot. Therefore any modification you make to the
084: * returned list will be present inside the JAXB object.
085: * This is why there is not a <CODE>set</CODE> method for the content property.
086: *
087: * <p>
088: * For example, to add a new item, do as follows:
089: * <pre>
090: * getContent().add(newItem);
091: * </pre>
092: *
093: *
094: * <p>
095: * Objects of the following type(s) are allowed in the list
096: * {@link Object }
097: * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
098: * {@link String }
099: * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
100: * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
101: *
102: *
103: */
104: public List<Object> getContent() {
105: if (content == null) {
106: content = new ArrayList<Object>();
107: }
108: return this .content;
109: }
110:
111: public void setContent(List<Object> content) {
112: this .content = content;
113: }
114:
115: /**
116: * Gets the value of the algorithm property.
117: *
118: * @return
119: * possible object is
120: * {@link String }
121: *
122: */
123: public String getAlgorithm() {
124: return algorithm;
125: }
126:
127: /**
128: * Sets the value of the algorithm property.
129: *
130: * @param value
131: * allowed object is
132: * {@link String }
133: *
134: */
135: public void setAlgorithm(String value) {
136: this.algorithm = value;
137: }
138:
139: }
|