Windows fixes for IPv6 and CIDR support.
[shibboleth/cpp-sp.git] / shibsp / util / SPConstants.h
1 /**
2  * Licensed to the University Corporation for Advanced Internet
3  * Development, Inc. (UCAID) under one or more contributor license
4  * agreements. See the NOTICE file distributed with this work for
5  * additional information regarding copyright ownership.
6  *
7  * UCAID licenses this file to you under the Apache License,
8  * Version 2.0 (the "License"); you may not use this file except
9  * in compliance with the License. You may obtain a copy of the
10  * License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing,
15  * software distributed under the License is distributed on an
16  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
17  * either express or implied. See the License for the specific
18  * language governing permissions and limitations under the License.
19  */
20
21 /**
22  * @file shibsp/util/SPConstants.h
23  * 
24  * Shibboleth SP XML constants.
25  */
26
27 #ifndef __shibsp_constants_h__
28 #define __shibsp_constants_h__
29
30 #include <shibsp/base.h>
31 #include <xercesc/util/XercesDefs.hpp>
32
33 /**
34  * Shibboleth SP XML constants.
35  */
36 namespace shibspconstants {
37
38     /**  Shibboleth Metadata XML namespace ("urn:mace:shibboleth:metadata:1.0") */
39     extern SHIBSP_API const XMLCh SHIBMD_NS[];
40
41     /** Shibboleth Metadata QName prefix ("shibmd") */
42     extern SHIBSP_API const XMLCh SHIBMD_PREFIX[];
43
44     /** Shibboleth 2.0 SP configuration namespace ("urn:mace:shibboleth:2.0:native:sp:config") */
45     extern SHIBSP_API const XMLCh SHIB2SPCONFIG_NS[];
46
47     /** Shibboleth 2.0 SP protocol provider namespace ("urn:mace:shibboleth:2.0:native:sp:protocols") */
48     extern SHIBSP_API const XMLCh SHIB2SPPROTOCOLS_NS[];
49
50     /** Shibboleth 2.0 attribute mapping namespace ("urn:mace:shibboleth:2.0:attribute-map") */
51     extern SHIBSP_API const XMLCh SHIB2ATTRIBUTEMAP_NS[];
52
53     /** Shibboleth 2.0 notification namespace ("urn:mace:shibboleth:2.0:sp:notify") */
54     extern SHIBSP_API const XMLCh SHIB2SPNOTIFY_NS[];
55
56     /** Shibboleth 2.0 attribute filter policy namespace ("urn:mace:shibboleth:2.0:afp") */
57     extern SHIBSP_API const XMLCh SHIB2ATTRIBUTEFILTER_NS[];
58
59     /** Shibboleth 2.0 basic matching function namespace ("urn:mace:shibboleth:2.0:afp:mf:basic") */
60     extern SHIBSP_API const XMLCh SHIB2ATTRIBUTEFILTER_MF_BASIC_NS[];
61
62     /** Shibboleth 2.0 SAML matching function namespace ("urn:mace:shibboleth:2.0:afp:mf:saml") */
63     extern SHIBSP_API const XMLCh SHIB2ATTRIBUTEFILTER_MF_SAML_NS[];
64
65     /** Shibboleth 1.x Protocol Enumeration constant ("urn:mace:shibboleth:1.0") */
66     extern SHIBSP_API const XMLCh SHIB1_PROTOCOL_ENUM[];
67
68     /** Shibboleth 1.x URI AttributeNamespace constant ("urn:mace:shibboleth:1.0:attributeNamespace:uri") */
69     extern SHIBSP_API const XMLCh SHIB1_ATTRIBUTE_NAMESPACE_URI[];
70
71     /** Shibboleth 1.x transient NameIdentifier Format constant ("urn:mace:shibboleth:1.0:nameIdentifier") */
72     extern SHIBSP_API const XMLCh SHIB1_NAMEID_FORMAT_URI[];
73
74     /** Shibboleth 1.x AuthnRequest binding/profile ("urn:mace:shibboleth:1.0:profiles:AuthnRequest") */
75     extern SHIBSP_API const XMLCh SHIB1_AUTHNREQUEST_PROFILE_URI[];
76
77     /** Shibboleth 1.3 SessionInit binding/profile ("urn:mace:shibboleth:sp:1.3:SessionInit") */
78     extern SHIBSP_API const char SHIB1_SESSIONINIT_PROFILE_URI[];
79
80     /** Shibboleth 1.3 Local Logout binding/profile ("urn:mace:shibboleth:sp:1.3:Logout") */
81     extern SHIBSP_API const char SHIB1_LOGOUT_PROFILE_URI[];
82     
83     /** Shibboleth 2.0 SP configuration namespace ("urn:mace:shibboleth:2.0:native:sp:config") */
84     extern SHIBSP_API const char ASCII_SHIB2SPCONFIG_NS[];
85 };
86
87 #endif /* __shibsp_constants_h__ */