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: package com.sun.xml.ws.security.opt.api;
24:
25: /**
26: * represents a SOAP/Security Header that is either signed or encrypted.
27: * @author K.Venugopal@sun.com
28: */
29:
30: public interface SecuredHeader {
31: /**
32: *
33: * @param id true if the SecuredHeader refers to id.
34: * @return
35: */
36: boolean hasID(String id);
37: // /**
38: // *
39: // * @param id
40: // * @param outputstream
41: // * @throws com.sun.xml.wss.XWSSecurityException
42: // */
43: // public void writeContentWithID(String id, OutputStream outputstream) throws XWSSecurityException ;
44: // /**
45: // *
46: // * @param id
47: // * @param writer
48: // * @throws com.sun.xml.wss.XWSSecurityException
49: // */
50: // public void writeContentWithID(String id, XMLStreamWriter writer) throws XWSSecurityException ;
51: }
|