rampart_util.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 
00018 
00019 #include <axutil_utils_defines.h>
00020 #include <axis2_defines.h>
00021 #include <axutil_date_time.h>
00022 #include <axutil_env.h>
00023 #include <axutil_property.h>
00024 #include <axis2_msg_ctx.h>
00025 #include <rampart_authn_provider.h>
00026 #include <rampart_credentials.h>
00027 #include <rampart_callback.h>
00028 #include <rampart_replay_detector.h>
00029 #include <rampart_sct_provider.h>
00040 #ifndef RAMPART_UTIL_H
00041 #define RAMPART_UTIL_H
00042 
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046 
00047 
00048 
00056     AXIS2_EXTERN void* AXIS2_CALL
00057     rampart_load_module(const axutil_env_t *env,
00058                         axis2_char_t *module_name,
00059                         axutil_param_t **param);
00060 
00068     AXIS2_EXTERN rampart_credentials_t* AXIS2_CALL
00069     rampart_load_credentials_module(const axutil_env_t *env,
00070                                     axis2_char_t *cred_module_name);
00071 
00082     AXIS2_EXTERN rampart_credentials_status_t AXIS2_CALL
00083     rampart_call_credentials(const axutil_env_t *env,
00084                              rampart_credentials_t *cred_module,
00085                              axis2_msg_ctx_t *ctx,
00086                              axis2_char_t **username,
00087                              axis2_char_t **password);
00088 
00096     AXIS2_EXTERN rampart_authn_provider_t* AXIS2_CALL
00097     rampart_load_auth_module(const axutil_env_t *env,
00098                              axis2_char_t *auth_module_name);
00099 
00107     AXIS2_EXTERN rampart_replay_detector_t* AXIS2_CALL
00108     rampart_load_replay_detector(const axutil_env_t *env,
00109                              axis2_char_t *replay_detector_name);
00110 
00118     AXIS2_EXTERN rampart_sct_provider_t* AXIS2_CALL
00119     rampart_load_sct_provider(const axutil_env_t *env,
00120                              axis2_char_t *sct_provider_name);
00121 
00133     AXIS2_EXTERN rampart_authn_provider_status_t AXIS2_CALL
00134     rampart_authenticate_un_pw(const axutil_env_t *env,
00135                                rampart_authn_provider_t *authp,
00136                                const axis2_char_t *username,
00137                                const axis2_char_t *password,
00138                                const axis2_char_t *nonce,/*Can be NULL if plain text*/
00139                                const axis2_char_t *created,/*Can be NULL if plain text*/
00140                                const axis2_char_t *password_type,
00141                                axis2_msg_ctx_t *msg_ctx);
00142 
00150     AXIS2_EXTERN rampart_callback_t* AXIS2_CALL
00151     rampart_load_pwcb_module(const axutil_env_t *env,
00152                              axis2_char_t *callback_module_name);
00153 
00161     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00162     rampart_callback_password(const axutil_env_t *env,
00163                               rampart_callback_t *callback_module,
00164                               const axis2_char_t *username);
00165 
00172     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00173     rampart_generate_nonce(const axutil_env_t *env, int length);
00174 
00181     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00182     rampart_generate_time(const axutil_env_t *env, int ttl);
00183 
00190     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00191     rampart_compare_date_time(const axutil_env_t *env, axis2_char_t *dt1, axis2_char_t *dt2);
00192 
00198     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00199     rampart_print_info(const axutil_env_t *env, axis2_char_t* info);
00200 
00206     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00207     is_different_session_key_for_encryption_and_signing(const axutil_env_t *env,
00208         rampart_context_t *rampart_context);
00209 
00210     /* @} */
00211 #ifdef __cplusplus
00212 }
00213 #endif
00214 
00215 #endif    /* !RAMPART_UTIL_H */
00216 
00217 

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