trust_sts_client.h

Go to the documentation of this file.
00001 
00002 /*
00003 * Licensed to the Apache Software Foundation (ASF) under one or more
00004 * contributor license agreements.  See the NOTICE file distributed with
00005 * this work for additional information regarding copyright ownership.
00006 * The ASF licenses this file to You under the Apache License, Version 2.0
00007 * (the "License"); you may not use this file except in compliance with
00008 * the License.  You may obtain a copy of the License at
00009 *
00010 *      http://www.apache.org/licenses/LICENSE-2.0
00011 *
00012 * Unless required by applicable law or agreed to in writing, software
00013 * distributed under the License is distributed on an "AS IS" BASIS,
00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 * See the License for the specific language governing permissions and
00016 * limitations under the License.
00017 */
00018 
00019 #ifndef TRUST_STS_CLIENT
00020 #define TRUST_STS_CLIENT
00021 
00027 #include <stdio.h>
00028 #include <stdlib.h>
00029 #include <axiom.h>
00030 #include <axutil_utils.h>
00031 #include <axis2_client.h>
00032 #include <rp_includes.h>
00033 #include <rp_secpolicy.h>
00034 #include <neethi_policy.h>
00035 #include <neethi_util.h>
00036 #include <rampart_util.h>
00037 #include <trust_constants.h>
00038 #include <trust_util.h>
00039 #include <trust_policy_util.h>
00040 #include <trust_token.h>
00041 #include <rampart_config.h>
00042 #include <trust_rst.h>
00043 #include <trust_rstr.h>
00044 #include <trust_context.h>
00045 
00046 #ifdef __cplusplus
00047 extern "C"
00048 {
00049 #endif
00050 
00051     typedef struct trust_sts_client trust_sts_client_t;
00052 
00053     AXIS2_EXTERN trust_sts_client_t *AXIS2_CALL
00054     trust_sts_client_create(
00055         const axutil_env_t * env);
00056 
00057     AXIS2_EXTERN void AXIS2_CALL
00058     trust_sts_client_free(
00059         trust_sts_client_t * sts_client,
00060         const axutil_env_t * env);
00061 
00062     
00063     /*Send RST to the specified STS/IP. RST Node that is built from RST_Context should be passed*/
00064     AXIS2_EXTERN void AXIS2_CALL
00065     trust_sts_client_request_security_token(
00066         trust_sts_client_t * sts_client,
00067         const axutil_env_t * env,
00068         trust_context_t *trust_context);
00069 
00070 
00071     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00072     trust_sts_client_process_policies(
00073         trust_sts_client_t * sts_client,
00074         const axutil_env_t * env,
00075         neethi_policy_t * issuer_policy,
00076         neethi_policy_t * service_policy);
00077 
00078 
00079     AXIS2_EXTERN axis2_svc_client_t *AXIS2_CALL
00080     trust_sts_client_get_svc_client(
00081         trust_sts_client_t * sts_client,
00082         const axutil_env_t * env,
00083         axis2_char_t * action,
00084         axis2_char_t * address_version, 
00085         axis2_bool_t is_soap11);
00086 
00087     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00088     trust_sts_client_set_issuer_address(
00089         trust_sts_client_t * sts_client,
00090         const axutil_env_t * env,
00091         axis2_char_t * address);
00092 
00093     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00094     trust_sts_client_set_home_dir(
00095         trust_sts_client_t * sts_client,
00096         const axutil_env_t * env,
00097         axis2_char_t * directory);
00098 
00099     AXIS2_EXTERN oxs_buffer_t* AXIS2_CALL
00100     trust_sts_client_request_security_token_using_policy(
00101         trust_sts_client_t * sts_client,
00102         const axutil_env_t * env,
00103         trust_context_t *trust_context,
00104         neethi_policy_t *issuer_policy,
00105         axis2_char_t *address_version,
00106         axis2_bool_t is_soap11,
00107         rampart_context_t *rampart_context);
00108 
00109         AXIS2_EXTERN axis2_status_t AXIS2_CALL
00110         trust_sts_client_set_issuer_policy_location(
00111         trust_sts_client_t * sts_client,
00112         const axutil_env_t * env,
00113         axis2_char_t * file_path);
00114 
00115         AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00116         trust_sts_client_get_issuer_policy_location(
00117         trust_sts_client_t * sts_client,
00118             const axutil_env_t * env);
00119 
00120         AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00121         trust_sts_client_get_service_policy_location(
00122             trust_sts_client_t * sts_client,
00123             const axutil_env_t * env);
00124 
00125         AXIS2_EXTERN axis2_status_t AXIS2_CALL
00126         trust_sts_client_set_service_policy_location(
00127         trust_sts_client_t * sts_client,
00128         const axutil_env_t * env,
00129             axis2_char_t * file_path);
00130 
00131                 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00132         trust_sts_client_set_auth_info(
00133                 trust_sts_client_t * sts_client,
00134                 const axutil_env_t * env,
00135                 axis2_char_t *username,
00136                 axis2_char_t *password,
00137                 axis2_char_t * auth_type);
00138 
00139 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00140         trust_sts_client_set_issued_token(
00141                 trust_sts_client_t * sts_client,
00142                 const axutil_env_t * env,
00143                 rampart_saml_token_t *saml_token);
00144 
00145 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00146         trust_sts_client_set_issued_token_func(
00147                 trust_sts_client_t * sts_client,
00148                 const axutil_env_t * env,
00149                         issued_token_callback_func issue_token_func);
00150 
00151 
00152 
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156 #endif                          /*TRUST_STS_CLIENT_H */

Generated on Wed Oct 14 01:02:16 2009 for Rampart/C by  doxygen 1.5.7.1