rampart_constants.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 
00019 #ifndef RAMPART_CONSTANTS_H
00020 #define RAMPART_CONSTANTS_H
00021 
00031 #include <oxs_constants.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00055     /*Default values*/
00056 #define RAMPART_DEFAULT_KT_ALGO OXS_DEFAULT_KT_ALGO_HREF
00057 #define RAMPART_STR_DEFAULT OXS_STR_DEFAULT
00058 
00059     /* rampart element names*/
00060 #define RAMPART_SECURITY "Security"
00061 #define RAMPART_SECURITY_USERNAMETOKEN "UsernameToken"
00062 #define RAMPART_SECURITY_USERNAMETOKEN_USERNAME "Username"
00063 #define RAMPART_SECURITY_USERNAMETOKEN_PASSWORD "Password"
00064 #define RAMPART_SECURITY_USERNAMETOKEN_CREATED "Created"
00065 #define RAMPART_SECURITY_USERNAMETOKEN_NONCE "Nonce"
00066 #define RAMPART_SECURITY_USERNAMETOKEN_PASSWORD_ATTR_TYPE "Type"
00067 #define RAMPART_SECURITY_TIMESTAMP "Timestamp"
00068 #define RAMPART_SECURITY_TIMESTAMP_CREATED "Created"
00069 #define RAMPART_SECURITY_TIMESTAMP_EXPIRES "Expires"
00070 #define RAMPART_RAMPART "rampart"
00071 
00072     /*Rampart URIs*/
00073 #define RAMPART_WSSE "wsse"
00074 #define RAMPART_WSSE_XMLNS "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
00075 #define RAMPART_WSU "wsu"
00076 #define RAMPART_WSU_XMLNS "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
00077 #define RAMPART_PASSWORD_DIGEST_URI "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"
00078 
00079 #define RAMPART_PASSWORD_TEXT_URI "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
00080 
00081 
00082 #define RAMPART_INFLOW_SECURITY_POLICY              "InflowSecurityPolicy"
00083 #define RAMPART_OUTFLOW_SECURITY_POLICY             "OutflowSecurityPolicy"
00084 
00085 #define INFLOW_RAMPART_CONTEXT                      "InflowRampartContext"
00086 #define OUTFLOW_RAMPART_CONTEXT                     "OutflowRampartContext"
00087 
00088 #define RAMPART_CONTEXT                             "RampartContext"
00089 
00090 #define IN_MESSAGE_SECURITY                          "InMessageSecurity"
00091 #define OUT_MESSAGE_SECURITY                         "OutMessageSEcurity"
00092 #define RAMPART_PASSWORD_TEXT                       "plainText"
00093 #define RAMPART_PASSWORD_DIGEST                     "Digest"
00094 #define RAMPART_CONFIGURATION                       "RampartConfiguration"
00095 
00096     /************fault codes***************/
00097 #define RAMPART_FAULT_UNSUPPORTED_SECURITY_TOKEN    "wsse:UnsupportedSecurityToken"
00098 #define RAMPART_FAULT_UNSUPPORTED_ALGORITHM         "wsse:UnsupportedAlgorithm"
00099 #define RAMPART_FAULT_INVALID_SECURITY              "wsse:InvalidSecurity"
00100 #define RAMPART_FAULT_INVALID_SECURITY_TOKEN        "wsse:InvalidSecurityToken"
00101 #define RAMPART_FAULT_FAILED_AUTHENTICATION         "wsse:FailedAuthentication"
00102 #define RAMPART_FAULT_FAILED_CHECK                  "wsse:FailedCheck"
00103 #define RAMPART_FAULT_SECURITY_TOKEN_UNAVAILABLE    "wsse:SecurityTokenUnavailable"
00104 
00105     /***********fault related strings*********/
00106 #define RAMPART_FAULT_IN_TIMESTAMP             "wsse:Timestamp"
00107 #define RAMPART_FAULT_IN_USERNAMETOKEN         "wsse:UsernameToken"
00108 #define RAMPART_FAULT_IN_ENCRYPTED_KEY         "xenc:EncryptedKey"
00109 #define RAMPART_FAULT_IN_ENCRYPTED_DATA        "xenc:EncryptedData"
00110 #define RAMPART_FAULT_IN_SIGNATURE             "ds:Signature"
00111 #define RAMPART_FAULT_MSG_REPLAYED             "rampc:Message-Replayed"
00112 #define RAMPART_FAULT_IN_POLICY                "rampc:Policy"
00113 
00114     /*Dynamically set values*/
00115 #define RAMPART_ACTION_PASSWORD "password"
00116 #define RAMPART_ACTION_ENC_USER_PASSWORD "encUserPassword"
00117 #define RAMPART_CALLBACK_SPECIFIC_PROPERTY "callbackSpecificProperty"
00118 
00119     /*Security processed results*/
00120 #define RAMPART_SECURITY_PROCESSED_RESULTS "SecurityProcessedResults"
00121 #define RAMPART_SPR_UT_USERNAME "SPR_UT_username"
00122 #define RAMPART_SPR_UT_CREATED "SPR_UT_created"
00123 #define RAMPART_SPR_UT_NONCE "SPR_UT_nonce"
00124 #define RAMPART_SPR_UT_PASSWORD_TYPE "SPR_UT_passwordType"
00125 #define RAMPART_SPR_TS_CREATED "SPR_TS_created"
00126 #define RAMPART_SPR_TS_EXPIRES "SPR_TS_expires"
00127 #define RAMPART_SPR_UT_CHECKED "SPR_UT_Checked"
00128 #define RAMPART_SPR_TS_CHECKED "SPR_TS_Checked"
00129 #define RAMPART_SPR_ENC_CHECKED "SPR_ENC_Checked"
00130 
00131 #define RAMPART_YES "YES"
00132 #define RAMPART_NO "NO"
00133 
00134 #define RAMPART_STR_DIRECT_REFERENCE    OXS_STR_DIRECT_REFERENCE
00135 #define RAMPART_STR_KEY_IDENTIFIER      OXS_STR_KEY_IDENTIFIER
00136 #define RAMPART_STR_EMBEDDED            OXS_STR_EMBEDDED
00137 #define RAMPART_STR_ISSUER_SERIAL       OXS_STR_ISSUER_SERIAL
00138 #define RAMPART_STR_THUMB_PRINT         OXS_STR_THUMB_PRINT
00139 #define RAMPART_STR_EXTERNAL_URI        OXS_STR_EXTERNAL_URI
00140 #define RAMPART_STR_ENCRYPTED_KEY       OXS_STR_ENCRYPTED_KEY
00141 
00142 #define RAMPART_RD_DB_PROP "Rampart_RD_DB_Prop"
00143 #define RAMPART_RD_DEF_VALID_DURATION 60
00144 #define RAMPART_RD_DEF_MAX_RCDS 5
00145 #ifdef __cplusplus
00146 }
00147 #endif
00148 
00150 #endif /* RAMPART_CONSTANTS_H*/

Generated on Thu Oct 4 17:37:07 2007 for Rampart/C by  doxygen 1.4.7