rampart_saml.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2003-2004 The Apache Software Foundation.
00003  *
00004  *   Licensed under the Apache License, Version 2.0 (the "License");
00005  *   you may not use this file except in compliance with the License.
00006  *   You may obtain a copy of the License at
00007  *
00008  *       http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  *   Unless required by applicable law or agreed to in writing, software
00011  *   distributed under the License is distributed on an "AS IS" BASIS,
00012  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *   See the License for the specific language governing permissions and
00014  *   limitations under the License.
00015  */
00016 
00017 #include <axutil_utils_defines.h>
00018 #include <axis2_defines.h>
00019 #include <axutil_env.h>
00020 #include <axiom_soap.h>
00021 #include <axis2_msg_ctx.h>
00022 #include <oxs_asym_ctx.h>
00023 #include <oxs_xml_encryption.h>
00024 #include <rampart_context.h>
00025 #include <axutil_utils.h>
00026 #include <axiom.h>
00027 
00034 #ifndef RAMPART_SAML_H
00035 #define RAMPART_SAML_H
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 #define RAMPART_ST_FAULT_SECURITYTOKENUNAVAILABLE_STR   "A referenced SAML assertion could not be retrieved."
00042 #define RAMPART_ST_FAULT_UNSUPPORTEDSECURITYTOKEN_STR   "An assertion contains a <saml:condition> element that the receive does not understand."
00043 #define RAMPART_ST_FAULT_FAILEDCHECK_STR                "A signature withing an assertion or referencing an assertion is invalid."
00044 #define RAMPART_ST_FAULT_INVALIDSECURITYTOKEN_STR       "The issuer of an assertion is not acceptable to the receiver."                
00045 
00046 #define RAMPART_ST_FAULT_SECURITYTOKENUNAVAILABLE_CODE  "wsse:SecurityTokenUnavailable"
00047 #define RAMPART_ST_FAULT_UNSUPPORTEDSECURITYTOKEN_CODE  "wsse:UnsupportedSecurityToken"
00048 #define RAMPART_ST_FAULT_FAILEDCHECK_CODE               "wsse:FailedCheck"
00049 #define RAMPART_ST_FAULT_INVALIDSECURITYTOKEN_CODE      "wsse:InvalidSecurityToken"                
00050 
00051 #define RAMPART_SAML_FAULT_CODE                         "env:Sender"
00052 
00062 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00063 rampart_saml_supporting_token_build(const axutil_env_t *env, 
00064                          rampart_context_t *rampart_context,                         
00065                          axiom_node_t *sec_node,
00066                          axutil_array_list_t *sign_parts);
00076 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00077 rampart_saml_token_validate(const axutil_env_t *env, 
00078                             rampart_context_t *rampart_context, 
00079                             axiom_node_t *assertion);
00087 AXIS2_EXTERN char * AXIS2_CALL
00088 rampart_saml_token_get_subject_confirmation(const axutil_env_t *env, 
00089                                             axiom_node_t *assertion);
00090 
00091 
00099 AXIS2_EXTERN int AXIS2_CALL
00100 rampart_saml_token_fault_securitytokenunavailable(axutil_env_t *env, 
00101                                                   axis2_msg_ctx_t *ctx);
00109 AXIS2_EXTERN int AXIS2_CALL
00110 rampart_saml_token_fault_unsupportedsecuritytoken(axutil_env_t *env, 
00111                                                   axis2_msg_ctx_t *ctx);
00119 AXIS2_EXTERN int AXIS2_CALL
00120 rampart_saml_token_fault_failedcheck(axutil_env_t *env, 
00121                                                   axis2_msg_ctx_t *ctx);
00129 AXIS2_EXTERN int AXIS2_CALL
00130 rampart_saml_token_fault_invalidsecuritytoken(axutil_env_t *env, 
00131                                                   axis2_msg_ctx_t *ctx);
00132 
00133 
00134 #ifdef __cplusplus
00135 }
00136 #endif
00137 
00138 #endif    

Generated on Fri May 23 15:50:24 2008 for Rampart/C by  doxygen 1.5.5