1 8 9 package com.sun.xml.ws.security.impl.bindings; 10 11 import java.util.ArrayList ; 12 import java.util.HashMap ; 13 import java.util.List ; 14 import java.util.Map ; 15 import javax.xml.bind.annotation.XmlAccessType; 16 import javax.xml.bind.annotation.XmlAccessorType; 17 import javax.xml.bind.annotation.XmlAnyAttribute; 18 import javax.xml.bind.annotation.XmlAnyElement; 19 import javax.xml.bind.annotation.XmlAttribute; 20 import javax.xml.bind.annotation.XmlElement; 21 import javax.xml.bind.annotation.XmlID; 22 import javax.xml.bind.annotation.XmlType; 23 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 24 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 25 import javax.xml.namespace.QName ; 26 import com.sun.xml.ws.security.impl.bindings.AttributedString; 27 import com.sun.xml.ws.security.impl.bindings.UsernameTokenType; 28 import org.w3c.dom.Element ; 29 30 31 54 @XmlAccessorType(XmlAccessType.FIELD) 55 @XmlType(name = "UsernameTokenType", propOrder = { 56 "username", 57 "any" 58 }) 59 public class UsernameTokenType { 60 61 @XmlElement(name = "Username", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd") 62 protected AttributedString username; 63 @XmlAnyElement(lax = true) 64 protected List <Object > any; 65 @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd") 66 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 67 @XmlID 68 protected String id; 69 @XmlAnyAttribute 70 private Map <QName , String > otherAttributes = new HashMap <QName , String >(); 71 72 80 public AttributedString getUsername() { 81 return username; 82 } 83 84 92 public void setUsername(AttributedString value) { 93 this.username = value; 94 } 95 96 119 public List <Object > getAny() { 120 if (any == null) { 121 any = new ArrayList <Object >(); 122 } 123 return this.any; 124 } 125 126 134 public String getId() { 135 return id; 136 } 137 138 146 public void setId(String value) { 147 this.id = value; 148 } 149 150 164 public Map <QName , String > getOtherAttributes() { 165 return otherAttributes; 166 } 167 168 } 169 | Popular Tags |