001: /*
002: * $Id: CancelTarget.java,v 1.2 2007/05/29 22:11:30 ofung Exp $
003: */
004:
005: /*
006: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
007: *
008: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
009: *
010: * The contents of this file are subject to the terms of either the GNU
011: * General Public License Version 2 only ("GPL") or the Common Development
012: * and Distribution License("CDDL") (collectively, the "License"). You
013: * may not use this file except in compliance with the License. You can obtain
014: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
015: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
016: * language governing permissions and limitations under the License.
017: *
018: * When distributing the software, include this License Header Notice in each
019: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
020: * Sun designates this particular file as subject to the "Classpath" exception
021: * as provided by Sun in the GPL Version 2 section of the License file that
022: * accompanied this code. If applicable, add the following below the License
023: * Header, with the fields enclosed by brackets [] replaced by your own
024: * identifying information: "Portions Copyrighted [year]
025: * [name of copyright owner]"
026: *
027: * Contributor(s):
028: *
029: * If you wish your version of this file to be governed by only the CDDL or
030: * only the GPL Version 2, indicate your decision by adding "[Contributor]
031: * elects to include this software in this distribution under the [CDDL or GPL
032: * Version 2] license." If you don't indicate a single choice of license, a
033: * recipient has the option to distribute your version of this file under
034: * either the CDDL, the GPL Version 2 or to extend the choice of license to
035: * its licensees as provided above. However, if you add GPL Version 2 code
036: * and therefore, elected the GPL Version 2 license, then the option applies
037: * only if the new code is made subject to such option by the copyright
038: * holder.
039: */
040:
041: package com.sun.xml.ws.security.trust.elements;
042:
043: import com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference;
044: import com.sun.xml.ws.security.Token;
045:
046: /**
047: * Defines Binding for requesting security tokens to be cancelled.
048: *
049: * @author WS-Trust Implementation Team
050: */
051: public interface CancelTarget {
052:
053: /**
054: *Constants denoting type of Cancel Target
055: */
056: public static final String STR_TARGET_TYPE = "SecurityTokenReference";
057: public static final String CUSTOM_TARGET_TYPE = "Custom";
058:
059: /**
060: * Get the type of the Cancel Target information item
061: */
062: String getTargetType();
063:
064: /**
065: * Gets the value of the any property.
066: *
067: * @return
068: * possible object is
069: * {@link Object }
070: *
071: */
072: Object getAny();
073:
074: /**
075: * Sets the value of the any property.
076: *
077: * @param value
078: * allowed object is
079: * {@link Object }
080: *
081: */
082: void setAny(Object value);
083:
084: /**
085: * Set the STR for the Token to be Cancelled
086: */
087: void setSecurityTokenReference(SecurityTokenReference ref);
088:
089: /**
090: * Get the STR for the Token to be Cancelled
091: */
092: SecurityTokenReference getSecurityTokenReference();
093:
094: /**
095: * Set the token to be Cancelled
096: */
097: void setToken(Token token);
098:
099: /**
100: * Get the token to be Cancelled
101: */
102: Token getToken();
103:
104: }
|