rampart_config.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 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 #ifndef RAMPART_CONFIG_H
00018 #define RAMPART_CONFIG_H
00019 
00031 #include <rp_includes.h>
00032 #include <rp_secpolicy.h>
00033 #include <rampart_authn_provider.h>
00034 #include <axutil_property.h>
00035 #include <rampart_constants.h>
00036 #include <rampart_callback.h>
00037 #include <rampart_authn_provider.h>
00038 #include <axis2_key_type.h>
00039 #include <axis2_msg_ctx.h>
00040 #include <oxs_key.h>
00041 #include <axutil_array_list.h>
00042 #include <rampart_saml_token.h>
00043 #include <rampart_issued_token.h>
00044 
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00050     typedef struct rampart_config_t rampart_config_t;
00051 
00052 
00058     AXIS2_EXTERN rampart_config_t *AXIS2_CALL
00059     rampart_config_create(const axutil_env_t *env);
00060 
00061 
00068     AXIS2_EXTERN void AXIS2_CALL
00069     rampart_config_free(rampart_config_t *rampart_config,
00070                          const axutil_env_t *env);
00071 
00072 
00073     /****************************************************************/
00074 
00084     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00085     rampart_config_set_username(rampart_config_t *rampart_config,
00086                              const axutil_env_t *env,
00087                              axis2_char_t *user);
00088 
00098     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00099     rampart_config_set_password(rampart_config_t *rampart_config,
00100                                  const axutil_env_t *env,
00101                                  axis2_char_t *password);
00102 
00112     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00113     rampart_config_set_password_type(rampart_config_t *rampart_config,
00114                                       const axutil_env_t *env,
00115                                       axis2_char_t *password_type);
00116 
00126     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00127     rampart_config_set_ttl(rampart_config_t *rampart_config,
00128                             const axutil_env_t *env,
00129                             int ttl);
00130 
00140         AXIS2_EXTERN int AXIS2_CALL
00141         rampart_config_add_saml_token(rampart_config_t *rampart_config, 
00142                                                                   const axutil_env_t *env, 
00143                                                                   rampart_saml_token_t *saml);
00144 
00154         AXIS2_EXTERN axis2_status_t AXIS2_CALL
00155         rampart_config_set_issued_token_aquire_function(rampart_config_t *rampart_config,
00156                                                                   const axutil_env_t *env,
00157                                                                   issued_token_callback_func issued_token_aquire);
00165     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00166     rampart_config_get_username(
00167         rampart_config_t *rampart_config,
00168         const axutil_env_t *env);
00176     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00177     rampart_config_get_password(
00178         rampart_config_t *rampart_config,
00179         const axutil_env_t *env);
00187     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00188     rampart_config_get_password_type(
00189         rampart_config_t *rampart_config,
00190         const axutil_env_t *env);
00198     AXIS2_EXTERN int AXIS2_CALL
00199     rampart_config_get_ttl(
00200         rampart_config_t *rampart_config,
00201         const axutil_env_t *env);
00209         AXIS2_EXTERN axutil_array_list_t * AXIS2_CALL
00210         rampart_config_get_saml_tokens(rampart_config_t *rampart_config, 
00211                                                                   const axutil_env_t *env);    
00219         AXIS2_EXTERN issued_token_callback_func AXIS2_CALL
00220         rampart_config_get_issued_token_aquire_function(rampart_config_t *rampart_config, 
00221                                                                   const axutil_env_t *env);    
00222     /*End of Getters */
00223 
00224 
00225 #ifdef __cplusplus
00226 }
00227 #endif
00228 #endif
00229 
00230 
00231 
00232 
00233 
00234 
00235 

Generated on Thu May 22 15:02:56 2008 for Rampart/C by  doxygen 1.5.5