diff -r 000000000000 -r 373ffda63c9a src/share/jaxws_classes/com/sun/xml/internal/ws/policy/PolicyConstants.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/PolicyConstants.java Wed Apr 27 01:27:09 2016 +0800 @@ -0,0 +1,95 @@ +/* + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package com.sun.xml.internal.ws.policy; + +import javax.xml.namespace.QName; + +/** + * Commonly used constants by the policy implementations + */ +public final class PolicyConstants { + /** + * Sun proprietary policy namespace URI + */ + public static final String SUN_POLICY_NAMESPACE_URI = "http://java.sun.com/xml/ns/wsit/policy"; + + /** + * Sun proprietary policy namespace prefix + */ + public static final String SUN_POLICY_NAMESPACE_PREFIX = "sunwsp"; + + /** + * Fully qualified name of the SUN's proprietary policy assertion visibility attribute + */ + public static final QName VISIBILITY_ATTRIBUTE = new QName(SUN_POLICY_NAMESPACE_URI, "visibility"); + + /** + * Recognized value of the SUN's proprietary policy assertion visibility attribute + */ + public static final String VISIBILITY_VALUE_PRIVATE = "private"; + + /** + * Standard WS-Security Utility namespace URI, used in Policy Id + */ + public static final String WSU_NAMESPACE_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; + + /** + * Standard WS-Security Utility namespace prefix, used in Policy Id + */ + public static final String WSU_NAMESPACE_PREFIX = "wsu"; + + /** + * Fully qualified name of the Policy wsu:Id XML attribute + */ + public static final QName WSU_ID = new QName(WSU_NAMESPACE_URI, "Id"); + + /** + * Standard XML namespace URI + */ + public static final String XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace"; + + /** + * Fully qualified name of the xml:id policy attribute + */ + public static final QName XML_ID = new QName(XML_NAMESPACE_URI, "id"); + + /** + * Identifier of the client-side configuration file + */ + public static final String CLIENT_CONFIGURATION_IDENTIFIER = "client"; + + /** + * XML namespace for management policy assertions + */ + public static final String SUN_MANAGEMENT_NAMESPACE = "http://java.sun.com/xml/ns/metro/management"; + + /** + * Prevent instantiation of this class. + */ + private PolicyConstants() { + // nothing to initialize + } +}