01: /*
02: * SecurityTokenReference.java
03: *
04: * Created on August 2, 2006, 3:50 PM
05: *
06: * The contents of this file are subject to the terms
07: * of the Common Development and Distribution License
08: * (the License). You may not use this file except in
09: * compliance with the License.
10: *
11: * You can obtain a copy of the license at
12: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
13: * See the License for the specific language governing
14: * permissions and limitations under the License.
15: *
16: * When distributing Covered Code, include this CDDL
17: * Header Notice in each file and include the License file
18: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
19: * If applicable, add the following below the CDDL Header,
20: * with the fields enclosed by brackets [] replaced by
21: * you own identifying information:
22: * "Portions Copyrighted [year] [name of copyright owner]"
23: *
24: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
25: */
26:
27: package com.sun.xml.ws.security.opt.api.keyinfo;
28:
29: import com.sun.xml.ws.security.opt.api.reference.Reference;
30:
31: /**
32: *
33: * @author Ashutosh.Shahi@sun.com
34: */
35: public interface SecurityTokenReference extends Token {
36:
37: public static final String KEYIDENTIFIER = "Identifier";
38: public static final String REFERENCE = "Direct";
39: public static final String X509DATA_ISSUERSERIAL = "X509Data";
40:
41: /**
42: * Sets the appropriate reference type for STR - like EkyIndentifier, Direct reference etc
43: * @param ref The reference type used in STR
44: */
45: void setReference(Reference ref);
46:
47: /**
48: *
49: * @return The Reference used inside STR
50: */
51: Reference getReference();
52:
53: /**
54: * set the WSS 1.1 Token type for SecurityTokenRerference
55: * @param tokenType the value of TokenType attribute used in WSS 1.1
56: */
57: void setTokenType(String tokenType);
58:
59: /**
60: * get the WSS 1.1 Token type for SecurityTokenRerference
61: * @return the value of TokenType attribute used in WSS 1.1
62: */
63: String getTokenType();
64:
65: }
|