1/* 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26package com.sun.xml.internal.ws.policy; 27 28import javax.xml.namespace.QName; 29 30/** 31 * Commonly used constants by the policy implementations 32 */ 33public final class PolicyConstants { 34 /** 35 * Sun proprietary policy namespace URI 36 */ 37 public static final String SUN_POLICY_NAMESPACE_URI = "http://java.sun.com/xml/ns/wsit/policy"; 38 39 /** 40 * Sun proprietary policy namespace prefix 41 */ 42 public static final String SUN_POLICY_NAMESPACE_PREFIX = "sunwsp"; 43 44 /** 45 * Fully qualified name of the SUN's proprietary policy assertion visibility attribute 46 */ 47 public static final QName VISIBILITY_ATTRIBUTE = new QName(SUN_POLICY_NAMESPACE_URI, "visibility"); 48 49 /** 50 * Recognized value of the SUN's proprietary policy assertion visibility attribute 51 */ 52 public static final String VISIBILITY_VALUE_PRIVATE = "private"; 53 54 /** 55 * Standard WS-Security Utility namespace URI, used in Policy Id 56 */ 57 public static final String WSU_NAMESPACE_URI = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; 58 59 /** 60 * Standard WS-Security Utility namespace prefix, used in Policy Id 61 */ 62 public static final String WSU_NAMESPACE_PREFIX = "wsu"; 63 64 /** 65 * Fully qualified name of the Policy wsu:Id XML attribute 66 */ 67 public static final QName WSU_ID = new QName(WSU_NAMESPACE_URI, "Id"); 68 69 /** 70 * Standard XML namespace URI 71 */ 72 public static final String XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace"; 73 74 /** 75 * Fully qualified name of the xml:id policy attribute 76 */ 77 public static final QName XML_ID = new QName(XML_NAMESPACE_URI, "id"); 78 79 /** 80 * Identifier of the client-side configuration file 81 */ 82 public static final String CLIENT_CONFIGURATION_IDENTIFIER = "client"; 83 84 /** 85 * XML namespace for management policy assertions 86 */ 87 public static final String SUN_MANAGEMENT_NAMESPACE = "http://java.sun.com/xml/ns/metro/management"; 88 89 /** 90 * Prevent instantiation of this class. 91 */ 92 private PolicyConstants() { 93 // nothing to initialize 94 } 95} 96