01: /*
02: * $Id: PrefixNamespaceMappingCallback.java,v 1.3 2006/09/29 12:04:52 kumarjayanti 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.wss.impl.callback;
28:
29: import javax.security.auth.callback.Callback;
30: import java.util.Properties;
31:
32: /**
33: * Note: This callback has been deprecated and disabled.
34: * <P>
35: * This callback is an optional callback that can be handled by an
36: * implementation of CallbackHandler to register any prefix versus
37: * namespace-uri mappings that the developer wants to make use of in the
38: * security configuration.
39: *
40: * <p>Note: The following prefix-namespace mappings are supported by default
41: * and hence do not require to be registered.
42: *
43: * <ul>
44: * <li>env : http://schemas.xmlsoap.org/soap/envelope/ </li>
45: * <li>S : http://schemas.xmlsoap.org/soap/envelope/ </li>
46: * <li>SOAP-ENV : http://schemas.xmlsoap.org/soap/envelope/ </li>
47: * <li>ds : http://www.w3.org/2000/09/xmldsig# </li>
48: * <li>xenc : http://www.w3.org/2001/04/xmlenc# </li>
49: * <li>wsse : http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd </li>
50: * <li>wsu : http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd </li>
51: * <li>saml : urn:oasis:names:tc:SAML:1.0:assertion </li>
52: * </ul>
53: *
54: * @deprecated : since XWS 2.0 EA
55: */
56: public class PrefixNamespaceMappingCallback extends XWSSCallback
57: implements Callback {
58:
59: private Properties prefixNamespaceMappings = null;
60:
61: /**
62: * Set the prefix:namespace-uri mappings to be registered
63: *
64: * @param mappings the <code>Properties</code> to be registered
65: */
66: public void setMappings(Properties mappings) {
67: prefixNamespaceMappings = mappings;
68: }
69:
70: /**
71: * @return the prefix:namespace-uri mappings
72: */
73: public Properties getMappings() {
74: return prefixNamespaceMappings;
75: }
76: }
|