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: * SecurityTokenReference.java
025: *
026: * Created on October 19, 2005, 12:56 PM
027: *
028: * To change this template, choose Tools | Template Manager
029: * and open the template in the editor.
030: */
031:
032: package com.sun.xml.ws.security;
033:
034: import java.util.List;
035:
036: /**
037: * TODO: refine/define the methods in this interface
038: * @author root
039: */
040: public interface SecurityTokenReference extends Token {
041: /**
042: * Gets the value of the any property.
043: *
044: * <p>
045: * This accessor method returns a reference to the live list,
046: * not a snapshot. Therefore any modification you make to the
047: * returned list will be present inside the JAXB object.
048: * This is why there is not a <CODE>set</CODE> method for the any property.
049: *
050: * <p>
051: * For example, to add a new item, do as follows:
052: * <pre>
053: * getAny().add(newItem);
054: * </pre>
055: *
056: *
057: * <p>
058: * Objects of the following type(s) are allowed in the list
059: * {@link Element }
060: * {@link Object }
061: *
062: *
063: */
064: List getAny();
065:
066: /**
067: * Gets the value of the id property.
068: *
069: * @return
070: * possible object is
071: * {@link String }
072: *
073: */
074: String getId();
075:
076: /**
077: * Gets a map that contains attributes that aren't bound to any typed property on this class.
078: *
079: * <p>
080: * the map is keyed by the name of the attribute and
081: * the value is the string value of the attribute.
082: *
083: * the map returned by this method is live, and you can add new attribute
084: * by updating the map directly. Because of this design, there's no setter.
085: *
086: *
087: * @return
088: * always non-null
089: */
090: //Map<QName, String> getOtherAttributes();
091: /**
092: * Gets the value of the usage property.
093: *
094: * <p>
095: * This accessor method returns a reference to the live list,
096: * not a snapshot. Therefore any modification you make to the
097: * returned list will be present inside the JAXB object.
098: * This is why there is not a <CODE>set</CODE> method for the usage property.
099: *
100: * <p>
101: * For example, to add a new item, do as follows:
102: * <pre>
103: * getUsage().add(newItem);
104: * </pre>
105: *
106: *
107: * <p>
108: * Objects of the following type(s) are allowed in the list
109: * {@link String }
110: *
111: *
112: */
113: //List<String> getUsage();
114: /**
115: * Sets the value of the id property.
116: *
117: * @param value
118: * allowed object is
119: * {@link String }
120: *
121: */
122: void setId(String value);
123:
124: }
|