/* $Id$ * * Lasso - A free implementation of the Liberty Alliance specifications. * * Copyright (C) 2004 Entr'ouvert * http://lasso.entrouvert.org * * Authors: Nicolas Clapies * Valery Febvre * * 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 */ /*****************************************************************************/ /* 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"; const xmlChar lassoLibStatusCodeUnsupportedProfile[] = "lib:UnsupportedProfile"; /* 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"; /* Consent */ const xmlChar lassoLibConsentObtained[] = "urn:liberty:consent:obtained"; const xmlChar lassoLibConsentUnavailable[] = "urn:liberty:consent:unavailable"; const xmlChar lassoLibConsentInapplicable[] = "urn:liberty:consent:inapplicable"; /*****************************************************************************/ /* 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";