summaryrefslogtreecommitdiffstats
path: root/lasso/xml/strings.c
blob: 60dad9d501df1dba717103b66fd91320cf67ab05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* $Id$ 
 *
 * Lasso - A free implementation of the Liberty Alliance specifications.
 *
 * Copyright (C) 2004 Entr'ouvert
 * http://lasso.entrouvert.org
 * 
 * Author: Valery Febvre <vfebvre@easter-eggs.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program 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 for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#include <lasso/xml/strings.h>

/*****************************************************************************/
/* Lasso                                                                     */
/*****************************************************************************/

/* prefix & href */
const xmlChar lassoLassoHRef[]   = "http://www.entrouvert.org/namespaces/lasso/0.0";
const xmlChar lassoLassoPrefix[] = "lasso";

/*****************************************************************************/
/* Liberty Alliance                                                          */
/*****************************************************************************/

/* prefix & href */
const xmlChar lassoLibHRef[]   = "urn:liberty:iff:2003-08";
const xmlChar lassoLibPrefix[] = "lib";

/* Versioning */
const xmlChar lassoLibMajorVersion[] = "1";
const xmlChar lassoLibMinorVersion[] = "2";

/* NameIDPolicyType */
const xmlChar lassoLibNameIDPolicyTypeNone[]      = "none";
const xmlChar lassoLibNameIDPolicyTypeOneTime[]   = "onetime";
const xmlChar lassoLibNameIDPolicyTypeFederated[] = "federated";
const xmlChar lassoLibNameIDPolicyTypeAny[]       = "any";

/* AuthnContextComparison */
const xmlChar lassoLibAuthnContextComparisonExact[]   = "exact";
const xmlChar lassoLibAuthnContextComparisonMinimum[] = "minimum";
const xmlChar lassoLibAuthnContextComparisonBetter[]  = "better";

/* StatusCodes */
const xmlChar lassoLibStatusCodeFederationDoesNotExist[]               = "lib:FederationDoesNotExist";
const xmlChar lassoLibStatusCodeInvalidAssertionConsumerServiceIndex[] = "lib:InvalidAssertionConsumerServiceIndex";
const xmlChar lassoLibStatusCodeInvalidSignature[]                     = "lib:InvalidSignature";
const xmlChar lassoLibStatusCodeNoAuthnContext[]                       = "lib:NoAuthnContext";
const xmlChar lassoLibStatusCodeNoAvailableIDP[]                       = "lib:NoAvailableIDP";
const xmlChar lassoLibStatusCodeNoPassive[]                            = "lib:NoPassive";
const xmlChar lassoLibStatusCodeNoSupportedIDP[]                       = "lib:NoSupportedIDP";
const xmlChar lassoLibStatusCodeProxyCountExceeded[]                   = "lib:ProxyCountExceeded";
const xmlChar lassoLibStatusCodeUnknownPrincipal[]                     = "lib:UnknownPrincipal";
const xmlChar lassoLibStatusCodeUnsignedAuthnRequest[]                 = "lib:UnsignedAuthnRequest";

/* ProtocolProfile */
const xmlChar lassoLibProtocolProfileSSOGet[]         = "http://projectliberty.org/profiles/sso-get";
const xmlChar lassoLibProtocolProfileSSOPost[]        = "http://projectliberty.org/profiles/sso-post";
const xmlChar lassoLibProtocolProfileBrwsArt[]        = "http://projectliberty.org/profiles/brws-art";
const xmlChar lassoLibProtocolProfileBrwsPost[]       = "http://projectliberty.org/profiles/brws-post";
const xmlChar lassoLibProtocolProfileFedTermIdpHttp[] = "http://projectliberty.org/profiles/fedterm-idp-http";
const xmlChar lassoLibProtocolProfileFedTermIdpSoap[] = "http://projectliberty.org/profiles/fedterm-idp-soap";
const xmlChar lassoLibProtocolProfileFedTermSpHttp[]  = "http://projectliberty.org/profiles/fedterm-sp-http";
const xmlChar lassoLibProtocolProfileFedTermSpSoap[]  = "http://projectliberty.org/profiles/fedterm-sp-soap";
const xmlChar lassoLibProtocolProfileRniIdpHttp[]     = "http://projectliberty.org/profiles/rni-idp-http";
const xmlChar lassoLibProtocolProfileRniIdpSoap[]     = "http://projectliberty.org/profiles/rni-idp-soap";
const xmlChar lassoLibProtocolProfileRniSpHttp[]      = "http://projectliberty.org/profiles/rni-sp-http";
const xmlChar lassoLibProtocolProfileRniSpSoap[]      = "http://projectliberty.org/profiles/rni-sp-soap";
const xmlChar lassoLibProtocolProfileSloSpHttp[]      = "http://projectliberty.org/profiles/slo-sp-http";
const xmlChar lassoLibProtocolProfileSloSpSoap[]      = "http://projectliberty.org/profiles/slo-sp-soap";
const xmlChar lassoLibProtocolProfileSloIdpHttp[]     = "http://projectliberty.org/profiles/slo-idp-http";
const xmlChar lassoLibProtocolProfileSloIdpSoap[]     = "http://projectliberty.org/profiles/slo-idp-soap";

/* NameIdentifier formats */
const xmlChar lassoLibNameIdentifierFormatFederated[] = "urn:liberty:iff:nameid:federated";
const xmlChar lassoLibNameIdentifierFormatOneTime[]   = "urn:liberty:iff:nameid:one-time";
const xmlChar lassoLibNameIdentifierFormatEncrypted[] = "urn:liberty:iff:nameid:encrypted";
const xmlChar lassoLibNameIdentifierFormatEntityID[]  = "urn:liberty:iff:nameid:entityID";

/*****************************************************************************/
/* METADATA                                                                  */
/*****************************************************************************/

/* prefix & href */
const xmlChar lassoMetadataHRef[]   = "urn:liberty:metadata:2003-08";
const xmlChar lassoMetadataPrefix[] = "md";

/*****************************************************************************/
/* SAML                                                                      */
/*****************************************************************************/

/* prefix & href */
const xmlChar lassoSamlAssertionHRef[]   = "urn:oasis:names:tc:SAML:1.0:assertion";
const xmlChar lassoSamlAssertionPrefix[] = "saml";
const xmlChar lassoSamlProtocolHRef[]    = "urn:oasis:names:tc:SAML:1.0:protocol";
const xmlChar lassoSamlProtocolPrefix[]  = "samlp";

/* Versioning */
const xmlChar lassoSamlMajorVersion[] = "1";
const xmlChar lassoSamlMinorVersion[] = "1";

/* StatusCodes */
const xmlChar lassoSamlStatusCodeRequestDenied[] = "Samlp:RequestDenied";
const xmlChar lassoSamlStatusCodeSuccess[]       = "Samlp:Success";

/* AuthenticationMethods */
const xmlChar lassoSamlAuthenticationMethodPassword[]             = "urn:oasis:names:tc:SAML:1.0:am:password";
const xmlChar lassoSamlAuthenticationMethodKerberos[]             = "urn:ietf:rfc:1510";
const xmlChar lassoSamlAuthenticationMethodSecureRemotePassword[] = "urn:ietf:rfc:2945";
const xmlChar lassoSamlAuthenticationMethodHardwareToken[]        = "urn:oasis:names:tc:SAML:1.0:am:HardwareToken";
const xmlChar lassoSamlAuthenticationMethodSmartcardPki[]         = "urn:ietf:rfc:2246";
const xmlChar lassoSamlAuthenticationMethodSoftwarePki[]          = "urn:oasis:names:tc:SAML:1.0:am:X509-PKI";
const xmlChar lassoSamlAuthenticationMethodPgp[]                  = "urn:oasis:names:tc:SAML:1.0:am:PGP";
const xmlChar lassoSamlAuthenticationMethodSPki[]                 = "urn:oasis:names:tc:SAML:1.0:am:SPKI";
const xmlChar lassoSamlAuthenticationMethodXkms[]                 = "urn:oasis:names:tc:SAML:1.0:am:XKMS";
const xmlChar lassoSamlAuthenticationMethodXmlDSig[]              = "urn:ietf:rfc:3075";
const xmlChar lassoSamlAuthenticationMethodUnspecified[]          = "urn:oasis:names:tc:SAML:1.0:am:unspecified";

/* ConfirmationMethods */
const xmlChar lassoSamlConfirmationMethodArtifact01[]    = "urn:oasis:names:tc:SAML:1.0:cm:artifact-01";
const xmlChar lassoSamlConfirmationMethodBearer[]        = "urn:oasis:names:tc:SAML:1.0:cm:bearer";
const xmlChar lassoSamlConfirmationMethodHolderOfKey[]   = "urn:oasis:names:tc:SAML:1.0:cm:holder-of-key";
const xmlChar lassoSamlConfirmationMethodSenderVouches[] = "urn:oasis:names:tc:SAML:1.0:cm:sender-vouches";

/*****************************************************************************/
/* SOAP                                                                      */
/*****************************************************************************/

/* prefix & href */
const xmlChar lassoSoapEnvHRef[]   = "http://schemas.xmlsoap.org/soap/envelope/";
const xmlChar lassoSoapEnvPrefix[] = "soap-env";