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.2-b01-fcs
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.08.10 at 02:34:36 PM IST
028: //
029:
030: package com.sun.xml.ws.security.secext10;
031:
032: import java.util.HashMap;
033: import java.util.Map;
034: import javax.xml.bind.annotation.XmlAccessType;
035: import javax.xml.bind.annotation.XmlAccessorType;
036: import javax.xml.bind.annotation.XmlAnyAttribute;
037: import javax.xml.bind.annotation.XmlAttribute;
038: import javax.xml.bind.annotation.XmlID;
039: import javax.xml.bind.annotation.XmlType;
040: import javax.xml.bind.annotation.XmlValue;
041: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
042: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
043: import javax.xml.namespace.QName;
044:
045: /**
046: * A security token that is encoded in binary
047: *
048: * <p>Java class for BinarySecurityTokenType complex type.
049: *
050: * <p>The following schema fragment specifies the expected content contained within this class.
051: *
052: * <pre>
053: * <complexType name="BinarySecurityTokenType">
054: * <simpleContent>
055: * <extension base="<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd>EncodedString">
056: * <attribute name="ValueType" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
057: * </extension>
058: * </simpleContent>
059: * </complexType>
060: * </pre>
061: *
062: *
063: */
064: @XmlAccessorType(XmlAccessType.FIELD)
065: @XmlType(name="BinarySecurityTokenType")
066: public class BinarySecurityTokenType
067:
068: {
069:
070: @XmlAttribute(name="ValueType")
071: protected String valueType;
072:
073: @XmlAttribute(name="EncodingType")
074: protected String encodingType;
075:
076: @XmlValue
077: protected byte[] value;
078: @XmlAttribute(name="Id",namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
079: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
080: @XmlID
081: protected String id;
082: @XmlAnyAttribute
083: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
084:
085: /**
086: * Gets the value of the id property.
087: *
088: * @return
089: * possible object is
090: * {@link String }
091: *
092: */
093: public String getId() {
094: return id;
095: }
096:
097: /**
098: * Sets the value of the id property.
099: *
100: * @param value
101: * allowed object is
102: * {@link String }
103: *
104: */
105: public void setId(String value) {
106: this .id = value;
107: }
108:
109: /**
110: * Gets a map that contains attributes that aren't bound to any typed property on this class.
111: *
112: * <p>
113: * the map is keyed by the name of the attribute and
114: * the value is the string value of the attribute.
115: *
116: * the map returned by this method is live, and you can add new attribute
117: * by updating the map directly. Because of this design, there's no setter.
118: *
119: *
120: * @return
121: * always non-null
122: */
123: public Map<QName, String> getOtherAttributes() {
124: return otherAttributes;
125: }
126:
127: public void setValue(byte[] value) {
128: this .value = value;
129: }
130:
131: public byte[] getValue() {
132: return this .value;
133: }
134:
135: /**
136: * Gets the value of the encodingType property.
137: *
138: * @return
139: * possible object is
140: * {@link String }
141: *
142: */
143: public String getEncodingType() {
144: return encodingType;
145: }
146:
147: /**
148: * Sets the value of the encodingType property.
149: *
150: * @param value
151: * allowed object is
152: * {@link String }
153: *
154: */
155: public void setEncodingType(String value) {
156: this .encodingType = value;
157: }
158:
159: /**
160: * Gets the value of the valueType property.
161: *
162: * @return
163: * possible object is
164: * {@link String }
165: *
166: */
167: public String getValueType() {
168: return valueType;
169: }
170:
171: /**
172: * Sets the value of the valueType property.
173: *
174: * @param value
175: * allowed object is
176: * {@link String }
177: *
178: */
179: public void setValueType(String value) {
180: this.valueType = value;
181: }
182:
183: }
|