View Javadoc

1   /*
2    * Copyright 2008 Members of the EGEE Collaboration.
3    * Copyright 2008 University Corporation for Advanced Internet Development, Inc.
4    * 
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.opensaml.xacml.profile.saml;
19  
20  import javax.xml.namespace.QName;
21  
22  import org.opensaml.xacml.XACMLConstants;
23  
24  /** Defines the constants for this XACML SAML2.0 profile. */
25  public class SAMLProfileConstants extends XACMLConstants {
26  
27      /** The prefix for the use of saml-xacml assertion. */
28      public static final String SAML20XACMLASSERTION_PREFIX = "xacml-saml";
29  
30      /** The prefix for the use of saml20-xacml protocol. */
31      public static final String SAML20XACMLPROTOCOL_PREFIX = "xacml-samlp";
32  
33      /** The namespaces for use of XACML 1.0 SAML 2.0 protocol. */
34      public static final String SAML20XACML10P_NS = "urn:oasis:names:tc:xacml:1.0:profile:saml2.0:v2:schema:protocol";
35  
36      /** The namespaces for use of XACML 1.0 SAML 2.0 assertion. */
37      public static final String SAML20XACML10_NS = "urn:oasis:names:tc:xacml:1.0:profile:saml2.0:v2:schema:assertion";
38  
39      /** The namespace for use of XACML 1.1 SAML 2.0 protocol. */
40      public static final String SAML20XACML1_1P_NS = "urn:oasis:names:tc:xacml:1.1:profile:saml2.0:v2:schema:protocol";
41  
42      /** The namespace for use of XACML 1.1 SAML 2.0 assertion. */
43      public static final String SAML20XACML1_1_NS = "urn:oasis:names:tc:xacml:1.1:profile:saml2.0:v2:schema:assertion";
44  
45      /** The namespaces for use of XACML 2.0 SAML 2.0 protocol. */
46      public static final String SAML20XACML20P_NS = "urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:protocol";
47  
48      /** The namespaces for use of XACML 2.0 SAML 2.0 assertion. */
49      public static final String SAML20XACML20_NS = "urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:assertion";
50  
51      /** The namespaces for use of XACML 3.0 SAML 2.0 protocol. */
52      public static final String SAML20XACML30P_NS = "urn:oasis:names:tc:xacml:3.0:profile:saml2.0:v2:schema:protocol";
53  
54      /** The namespaces for use of XACML 3.0 SAML 2.0 assertion. */
55      public static final String SAML20XACML30_NS = "urn:oasis:names:tc:xacml:3.0:profile:saml2.0:v2:schema:assertion";
56  
57      /** QName of the DataType attribute that must be on SAML attributes that meet the XACML attribute profile spec. */
58      public static final QName SAML_DATATYPE_ATTRIB = new QName(
59              "urn:oasis:names:tc:SAML:2.0:profiles:attribute:XACML", "DataType", "xacmlprof");
60  
61  }