01: /*
02: * $Id: RequestedAttachedReferenceImpl.java,v 1.1 2007/08/23 12:40:56 shyam_rao Exp $
03: */
04:
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.trust.impl.wssx.elements;
28:
29: import com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference;
30: import com.sun.xml.ws.security.trust.impl.elements.str.SecurityTokenReferenceImpl;
31: import com.sun.xml.ws.security.secext10.SecurityTokenReferenceType;
32:
33: import com.sun.xml.ws.security.trust.elements.RequestedAttachedReference;
34: import com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestedReferenceType;
35:
36: /**
37: * Implementation for RequestedAttachedReference.
38: *
39: * @author Manveen Kaur
40: */
41: public class RequestedAttachedReferenceImpl extends
42: RequestedReferenceType implements RequestedAttachedReference {
43:
44: SecurityTokenReference str = null;
45:
46: public RequestedAttachedReferenceImpl() {
47: // empty constructor
48: }
49:
50: public RequestedAttachedReferenceImpl(SecurityTokenReference str) {
51: setSTR(str);
52: }
53:
54: public RequestedAttachedReferenceImpl(RequestedReferenceType rrType)
55: throws Exception {
56: this (new SecurityTokenReferenceImpl(rrType
57: .getSecurityTokenReference()));
58: }
59:
60: public SecurityTokenReference getSTR() {
61: return str;
62: }
63:
64: public void setSTR(SecurityTokenReference str) {
65: if (str != null) {
66: setSecurityTokenReference((SecurityTokenReferenceType) str);
67: }
68: this.str = str;
69: }
70: }
|