001: package org.w3._2001._04.xmlenc_;
002:
003: import java.math.BigInteger;
004: import java.util.ArrayList;
005: import java.util.List;
006: import javax.xml.bind.JAXBElement;
007: import javax.xml.bind.annotation.XmlAccessType;
008: import javax.xml.bind.annotation.XmlAccessorType;
009: import javax.xml.bind.annotation.XmlAnyElement;
010: import javax.xml.bind.annotation.XmlAttribute;
011: import javax.xml.bind.annotation.XmlElementRef;
012: import javax.xml.bind.annotation.XmlElementRefs;
013: import javax.xml.bind.annotation.XmlMixed;
014: import javax.xml.bind.annotation.XmlSchemaType;
015: import javax.xml.bind.annotation.XmlType;
016:
017: /**
018: * <p>Java class for EncryptionMethodType complex type.
019: *
020: * <p>The following schema fragment specifies the expected content contained within this class.
021: *
022: * <pre>
023: * <complexType name="EncryptionMethodType">
024: * <complexContent>
025: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
026: * <sequence>
027: * <element name="KeySize" type="{http://www.w3.org/2001/04/xmlenc#}KeySizeType" minOccurs="0"/>
028: * <element name="OAEPparams" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
029: * <any/>
030: * </sequence>
031: * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
032: * </restriction>
033: * </complexContent>
034: * </complexType>
035: * </pre>
036: *
037: *
038: */
039: @XmlAccessorType(XmlAccessType.FIELD)
040: @XmlType(name="EncryptionMethodType",propOrder={"content"})
041: public class EncryptionMethodType {
042:
043: @XmlElementRefs({@XmlElementRef(name="KeySize",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="OAEPparams",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class)})
044: @XmlMixed
045: @XmlAnyElement(lax=true)
046: protected List<Object> content;
047: @XmlAttribute(name="Algorithm",required=true)
048: @XmlSchemaType(name="anyURI")
049: protected String algorithm;
050:
051: /**
052: * Gets the value of the content property.
053: *
054: * <p>
055: * This accessor method returns a reference to the live list,
056: * not a snapshot. Therefore any modification you make to the
057: * returned list will be present inside the JAXB object.
058: * This is why there is not a <CODE>set</CODE> method for the content property.
059: *
060: * <p>
061: * For example, to add a new item, do as follows:
062: * <pre>
063: * getContent().add(newItem);
064: * </pre>
065: *
066: *
067: * <p>
068: * Objects of the following type(s) are allowed in the list
069: * {@link String }
070: * {@link Object }
071: * {@link JAXBElement }{@code <}{@link BigInteger }{@code >}
072: * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
073: *
074: *
075: */
076: public List<Object> getContent() {
077: if (content == null) {
078: content = new ArrayList<Object>();
079: }
080: return this .content;
081: }
082:
083: /**
084: * Gets the value of the algorithm property.
085: *
086: * @return
087: * possible object is
088: * {@link String }
089: *
090: */
091: public String getAlgorithm() {
092: return algorithm;
093: }
094:
095: /**
096: * Sets the value of the algorithm property.
097: *
098: * @param value
099: * allowed object is
100: * {@link String }
101: *
102: */
103: public void setAlgorithm(String value) {
104: this.algorithm = value;
105: }
106:
107: }
|