webservices/wsstar/wsstarpolicy/inc/wssecuritypolicyconstants.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23  
       
    24 
       
    25 #ifndef WSSTAR_SECURITY_POLICY_CONSTANTS_H
       
    26 #define WSSTAR_SECURITY_POLICY_CONSTANTS_H
       
    27 
       
    28 
       
    29 namespace WsSecurityPolicy 
       
    30     {	
       
    31 	_LIT8(KIncludeNever, "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never");
       
    32 	_LIT8(KIncludeOnce, "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Once");
       
    33 	_LIT8(KIncludeAlwaysToReceipent, "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient");
       
    34 	_LIT8(KIncludeAlways, "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always");
       
    35 
       
    36     // Prefix of WS-Security Policy namespace:
       
    37 	_LIT8( KWsSecuritypolicyPrefix , "sp");   
       
    38 	                 
       
    39     // Namespace of WS-Security Policy:
       
    40 	_LIT8( KWsSecurityPolicyNsUri , "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy");
       
    41     _LIT(KSlash, "//");
       
    42     _LIT8(KColon, ":");
       
    43     _LIT8(KTrue, "true");
       
    44     _LIT8(KFalse, "false");
       
    45 
       
    46     _LIT8(KXPath, "XPath"); 
       
    47     _LIT8(KXPathVersion, "XPathVersion"); 
       
    48 
       
    49     _LIT8(KHeader, "Header"); 
       
    50     _LIT8(KBody, "Body"); 
       
    51     _LIT8(KName, "Name"); 
       
    52     
       
    53     _LIT8(KNamespace, "Namespace");
       
    54     //5.1.1
       
    55     _LIT8(KSignedParts, "SignedParts"); 
       
    56     //5.1.2    
       
    57     _LIT8(KSignedElements, "SignedElements"); 
       
    58     //5.2.1    
       
    59     _LIT8(KEncryptedParts, "EncryptedParts"); 
       
    60     //5.2.2    
       
    61     _LIT8(KEncryptedElements, "EncryptedElements");
       
    62     //5.3    
       
    63     _LIT8(KRequiredElements, "RequiredElements");
       
    64 
       
    65     //6.3.1 Username Token assertion
       
    66     _LIT8(KUsernameToken, "UsernameToken");
       
    67     _LIT8(KIncludeToken, "IncludeToken");
       
    68     _LIT8(KWssUsernameToken10, "WssUsernameToken10");
       
    69     _LIT8(KWssUsernameToken11, "WssUsernameToken11");
       
    70     //6.3.2 IssuedToken Assertion
       
    71     _LIT8(KIssuedToken, "IssuedToken");
       
    72     _LIT8(KIssuer, "Issuer");
       
    73     _LIT8(KRequestSecurityTokenTemplate, "RequestSecurityTokenTemplate");
       
    74     _LIT8(KTrustVersion, "TrustVersion");
       
    75     _LIT8(KRequireDerivedKeys, "RequireDerivedKeys");
       
    76     _LIT8(KRequireExternalReference, "RequireExternalReference");
       
    77     _LIT8(KRequireInternalReference, "RequireInternalReference");
       
    78     //6.3.3    
       
    79     _LIT8(KX509Token, "X509Token");
       
    80     _LIT8(KRequireKeyIdentifierReference, "RequireKeyIdentifierReference");
       
    81     _LIT8(KRequireIssuerSerialReference, "RequireIssuerSerialReference");
       
    82     _LIT8(KRequireEmbeddedTokenReference, "RequireEmbeddedTokenReference");
       
    83     _LIT8(KRequireThumbprintReference, "RequireThumbprintReference");
       
    84     
       
    85             
       
    86     _LIT8(KWssX509V1Token10, "WssX509V1Token10");
       
    87     _LIT8(KWssX509V3Token10, "WssX509V3Token10");
       
    88     _LIT8(KWssX509Pkcs7Token10, "WssX509Pkcs7Token10");
       
    89     _LIT8(KWssX509PkiPathV1Token10, "WssX509PkiPathV1Token10");
       
    90     _LIT8(KWssX509V1Token11, "WssX509V1Token11");
       
    91     _LIT8(KWssX509V3Token11, "WssX509V3Token11");
       
    92     _LIT8(KWssX509Pkcs7Token11, "WssX509Pkcs7Token11");
       
    93     _LIT8(KWssX509PkiPathV1Token11, "WssX509PkiPathV1Token11");
       
    94     //6.3.4
       
    95     _LIT8(KKerberosToken, "KerberosToken");
       
    96     _LIT8(KWssKerberosV5ApReqToken11, "WssKerberosV5ApReqToken11");
       
    97     _LIT8(KWssGssKerberosV5ApReqToken11, "WssGssKerberosV5ApReqToken11");
       
    98     //6.3.5    
       
    99     _LIT8(KSpnegoContextToken, "SpnegoContextToken");
       
   100     //6.3.6
       
   101     _LIT8(KSecurityContextToken, "SecurityContextToken");
       
   102     _LIT8(KRequireExternalUriReference, "RequireExternalUriReference");
       
   103     _LIT8(KSC10SecurityContextToken, "SC10SecurityContextToken");
       
   104     //6.3.7 SecureConversationtoken asseertion
       
   105     _LIT8(KSecureConversationToken, "SecureConversationToken");
       
   106     _LIT8(KBootstrapPolicy, "BootstrapPolicy");
       
   107     //6.3.8 SamlToken Assertion    
       
   108     _LIT8(KSamlToken, "SamlToken");
       
   109     _LIT8(KWssSamlV10Token10, "WssSamlV10Token10");
       
   110     _LIT8(KWssSamlV11Token10, "WssSamlV11Token10");
       
   111     _LIT8(KWssSamlV10Token11, "WssSamlV10Token11");
       
   112     _LIT8(KWssSamlV11Token11, "WssSamlV11Token11");
       
   113     _LIT8(KWssSamlV20Token11, "WssSamlV20Token11");
       
   114     //6.3.9 RelToken
       
   115     _LIT8(KRelToken, "RelToken");
       
   116     _LIT8(KWssRelV10Token10, "WssRelV10Token10");
       
   117     _LIT8(KWssRelV20Token10, "WssRelV20Token10");
       
   118     _LIT8(KWssRelV10Token11, "WssRelV10Token11");
       
   119     _LIT8(KWssRelV20Token11, "WssRelV20Token11");
       
   120     //6.3.10 Https TokenAssertion
       
   121     _LIT8(KHttpsToken, "HttpsToken");
       
   122     _LIT8(KRequireClientCertificate, "RequireClientCertificate");
       
   123     //8.1 Alogorithm suite assertion
       
   124     _LIT8(KAlgorithmSuite, "AlgorithmSuite");
       
   125     
       
   126         
       
   127     _LIT8(KBasic256, "Basic256");
       
   128     _LIT8(KBasic192, "Basic192");
       
   129     _LIT8(KBasic128, "Basic128");
       
   130     _LIT8(KTripleDes, "TripleDes");
       
   131     _LIT8(KBasic256Rsa15, "Basic256Rsa15");
       
   132     _LIT8(KBasic192Rsa15, "Basic192Rsa15");
       
   133     _LIT8(KBasic128Rsa15, "Basic128Rsa15");
       
   134     _LIT8(KTripleDesRsa15, "TripleDesRsa15");
       
   135     _LIT8(KBasic256Sha256, "Basic256Sha256");
       
   136     _LIT8(KBasic192Sha256, "Basic192Sha256");
       
   137     _LIT8(KBasic128Sha256, "Basic128Sha256");
       
   138     _LIT8(KTripleDesSha256, "TripleDesSha256");
       
   139     _LIT8(KBasic256Sha256Rsa15, "Basic256Sha256Rsa15");
       
   140     _LIT8(KBasic192Sha256Rsa15, "Basic192Sha256Rsa15");
       
   141     _LIT8(KBasic128Sha256Rsa15, "Basic128Sha256Rsa15");
       
   142     _LIT8(KTripleDesSha256Rsa15, "TripleDesSha256Rsa15");
       
   143     _LIT8(KInclusiveC14N, "InclusiveC14N");
       
   144     _LIT8(KSoapNormalization10, "SoapNormalization10");
       
   145     _LIT8(KStrTransform10, "StrTransform10");
       
   146     _LIT8(KXPath10, "XPath10");
       
   147     _LIT8(KXPathFilter20, "XPathFilter20");
       
   148     //8.2 Layout assertion
       
   149     _LIT8(KLayout, "Layout");
       
   150     _LIT8(KStrict, "Strict");
       
   151     _LIT8(KLax, "Lax");
       
   152     _LIT8(KLaxTsFirst, "LaxTsFirst");
       
   153     _LIT8(KLaxTsLast, "LaxTsLast");
       
   154     //8.3 TransportBinding assertion    
       
   155     _LIT8(KTransportBinding, "TransportBinding");
       
   156     _LIT8(KTransportToken, "TransportToken");
       
   157     _LIT8(KIncludeTimestamp, "IncludeTimestamp");
       
   158     
       
   159     //8.4 Symmetric binding    
       
   160     _LIT8(KSymmetricBinding, "SymmetricBinding");
       
   161     _LIT8(KEncryptionToken, "EncryptionToken");
       
   162     _LIT8(KSignatureToken, "SignatureToken");
       
   163     _LIT8(KProtectionToken, "ProtectionToken");
       
   164     //Binding commons    
       
   165     _LIT8(KEncryptBeforeSigning, "EncryptBeforeSigning");
       
   166     _LIT8(KSignBeforeEncrypting, "SignBeforeEncrypting");
       
   167     _LIT8(KEncryptSignature, "EncryptSignature");
       
   168     _LIT8(KProtectTokens, "ProtectTokens");
       
   169     _LIT8(KOnlySignEntireHeadersAndBody, "OnlySignEntireHeadersAndBody");
       
   170     //8.5 Assymetric binding assertion    
       
   171     _LIT8(KAsymmetricBinding, "AsymmetricBinding");
       
   172     _LIT8(KInitiatorToken, "InitiatorToken");
       
   173     _LIT8(KRecipientToken, "RecipientToken");
       
   174     //9.1    
       
   175     _LIT8(KSupportingTokens, "SupportingTokens");
       
   176     //9.2    
       
   177     _LIT8(KSignedSupportingTokens, "SignedSupportingTokens");
       
   178     //9.3    
       
   179     _LIT8(KEndorsingSupportingTokens, "EndorsingSupportingTokens");
       
   180     // 9.4    
       
   181     _LIT8(KSignedEndorsingSupportingTokens, "SignedEndorsingSupportingTokens");
       
   182     //10. WSS SOAP message security options
       
   183     //Wss10 Assertion
       
   184     _LIT8(KWss10, "Wss10");
       
   185     _LIT8(KMustSupportRefKeyIdentifier, "MustSupportRefKeyIdentifier");
       
   186     _LIT8(KMustSupportRefIssuerSerial, "MustSupportRefIssuerSerial");
       
   187     _LIT8(KMustSupportRefExternalURI, "MustSupportRefExternalURI");
       
   188     _LIT8(KMustSupportRefEmbeddedToken, "MustSupportRefEmbeddedToken");
       
   189     //Wss11 Assertion in addition to Wss10
       
   190     _LIT8(KWss11, "Wss11");
       
   191     _LIT8(KMustSupportRefThumbprint, "MustSupportRefThumbprint");
       
   192     _LIT8(KMustSupportRefEncryptedKey, "MustSupportRefEncryptedKey");
       
   193     _LIT8(KRequireSignatureConfirmation, "RequireSignatureConfirmation");
       
   194     //Trust10 Assertion
       
   195     _LIT8(KTrust10, "Trust10");
       
   196     _LIT8(KMustSupportClientChallenge, "MustSupportClientChallenge");
       
   197     _LIT8(KMustSupportServerChallenge, "MustSupportServerChallenge");
       
   198     _LIT8(KRequireClientEntropy, "RequireClientEntropy");
       
   199     _LIT8(KRequireServerEntropy, "RequireServerEntropy");
       
   200     _LIT8(KMustSupportIssuedTokens, "MustSupportIssuedTokens");
       
   201 
       
   202 /*    
       
   203 
       
   204     SUPPORTING_TOKEN_SUPPORTING = 1;
       
   205     SUPPORTING_TOKEN_ENDORSING = 2;
       
   206     SUPPORTING_TOKEN_SIGNED = 3;
       
   207     SUPPORTING_TOKEN_SIGNED_ENDORSING = 4;
       
   208 */    
       
   209   
       
   210     ///
       
   211     ///Algorithms Namespaces
       
   212     ///
       
   213     _LIT8(KAlgoHMAC_SHA1, "http://www.w3.org/2000/09/xmldsig#hmac-sha1");
       
   214     _LIT8(KAlgoRSA_SHA1, "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
       
   215     _LIT8(KAlgoSHA1, "http://www.w3.org/2000/09/xmldsig#sha1");
       
   216     _LIT8(KAlgoSHA256, "http://www.w3.org/2001/04/xmlenc#sha256");
       
   217     _LIT8(KAlgoSHA512, "http://www.w3.org/2001/04/xmlenc#sha512");
       
   218     _LIT8(KAlgoAES128, "http://www.w3.org/2001/04/xmlenc#aes128-cbc");
       
   219     _LIT8(KAlgoAES192, "http://www.w3.org/2001/04/xmlenc#aes192-cbc");
       
   220     _LIT8(KAlgoAES256, "http://www.w3.org/2001/04/xmlenc#aes256-cbc");
       
   221     _LIT8(KAlgoTRIPLE_DES, "http://www.w3.org/2001/04/xmlenc#tripledes-cbc");
       
   222     _LIT8(KAlgoKW_AES128, "http://www.w3.org/2001/04/xmlenc#kw-aes256");
       
   223     _LIT8(KAlgoKW_AES192, "http://www.w3.org/2001/04/xmlenc#kw-aes192");
       
   224     _LIT8(KAlgoKW_AES256, "http://www.w3.org/2001/04/xmlenc#kw-aes128");
       
   225     _LIT8(KAlgoKW_TRIPLE_DES, "http://www.w3.org/2001/04/xmlenc#kw-tripledes");
       
   226     _LIT8(KAlgoKW_RSA_OAEP, "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p");
       
   227     _LIT8(KAlgoKW_RSA15, "http://www.w3.org/2001/04/xmlenc#rsa-1_5");
       
   228     _LIT8(KAlgoP_SHA1, "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1");
       
   229     _LIT8(KAlgoP_SHA1_L128, "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1");
       
   230     _LIT8(KAlgoP_SHA1_L192, "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1");
       
   231     _LIT8(KAlgoP_SHA1_L256, "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1");
       
   232     _LIT8(KAlgoC14N, "http://www.w3.org/2001/10/xml-c14n#");
       
   233     _LIT8(KAlgoEX_C14N, "http://www.w3.org/2001/10/xml-exc-c14n#");
       
   234     _LIT8(KAlgoSNT, "http://www.w3.org/TR/soap12-n11n");
       
   235     _LIT8(KAlgoSTRT10, "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform");
       
   236     _LIT8(KAlgoXPATH, "http://www.w3.org/TR/1999/REC-xpath-19991116");
       
   237     _LIT8(KAlgoXPATH20, "http://www.w3.org/2002/06/xmldsig-filter2");
       
   238     }
       
   239 
       
   240 #endif //WSSTAR_SECURITY_POLICY_CONSTANTS_H