01: /*
02: * The contents of this file are subject to the terms
03: * of the Common Development and Distribution License
04: * (the License). You may not use this file except in
05: * compliance with the License.
06: *
07: * You can obtain a copy of the license at
08: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
09: * See the License for the specific language governing
10: * permissions and limitations under the License.
11: *
12: * When distributing Covered Code, include this CDDL
13: * Header Notice in each file and include the License file
14: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
15: * If applicable, add the following below the CDDL Header,
16: * with the fields enclosed by brackets [] replaced by
17: * you own identifying information:
18: * "Portions Copyrighted [year] [name of copyright owner]"
19: *
20: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
21: */
22:
23: /*
24: * AttachmentData.java
25: *
26: * Created on April 7, 2005, 11:28 AM
27: */
28:
29: package com.sun.xml.wss.impl.dsig;
30:
31: import javax.xml.crypto.Data;
32: import javax.xml.soap.AttachmentPart;
33:
34: /**
35: * <B>Wrapper class to be used with XWSS attachment transform
36: * provider implementation.</B>
37: * @author K.Venugopal@sun.com
38: */
39: public class AttachmentData implements Data {
40: private AttachmentPart attachment = null;
41:
42: /** Creates a new instance of AttachmentData */
43: public AttachmentData() {
44: }
45:
46: /**
47: *
48: * @param attachment
49: */
50: public void setAttachmentPart(AttachmentPart attachment) {
51: this .attachment = attachment;
52: }
53:
54: /**
55: *
56: * @return
57: */
58: public AttachmentPart getAttachmentPart() {
59: return attachment;
60: }
61: }
|