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>
00038 #ifndef RAMPART_UTIL_H
00039 #define RAMPART_UTIL_H
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 
00046 
00054     AXIS2_EXTERN void* AXIS2_CALL
00055     rampart_load_module(const axutil_env_t *env,
00056                         axis2_char_t *module_name,
00057                         axutil_param_t **param);
00058 
00066     AXIS2_EXTERN rampart_credentials_t* AXIS2_CALL
00067     rampart_load_credentials_module(const axutil_env_t *env,
00068                                     axis2_char_t *cred_module_name);
00069 
00080     AXIS2_EXTERN rampart_credentials_status_t AXIS2_CALL
00081     rampart_call_credentials(const axutil_env_t *env,
00082                              rampart_credentials_t *cred_module,
00083                              axis2_msg_ctx_t *ctx,
00084                              axis2_char_t **username,
00085                              axis2_char_t **password);
00086 
00094     AXIS2_EXTERN rampart_authn_provider_t* AXIS2_CALL
00095     rampart_load_auth_module(const axutil_env_t *env,
00096                              axis2_char_t *auth_module_name);
00097 
00109     AXIS2_EXTERN rampart_authn_provider_status_t AXIS2_CALL
00110     rampart_authenticate_un_pw(const axutil_env_t *env,
00111                                rampart_authn_provider_t *authp,
00112                                const axis2_char_t *username,
00113                                const axis2_char_t *password,
00114                                const axis2_char_t *nonce,/*Can be NULL if plain text*/
00115                                const axis2_char_t *created,/*Can be NULL if plain text*/
00116                                const axis2_char_t *password_type,
00117                                axis2_msg_ctx_t *msg_ctx);
00118 
00126     AXIS2_EXTERN rampart_callback_t* AXIS2_CALL
00127     rampart_load_pwcb_module(const axutil_env_t *env,
00128                              axis2_char_t *callback_module_name);
00129 
00137     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00138     rampart_callback_password(const axutil_env_t *env,
00139                               rampart_callback_t *callback_module,
00140                               const axis2_char_t *username);
00141 
00148     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00149     rampart_generate_nonce(const axutil_env_t *env);
00150 
00157     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00158     rampart_generate_time(const axutil_env_t *env, int ttl);
00159 
00166     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00167     rampart_compare_date_time(const axutil_env_t *env, axis2_char_t *dt1, axis2_char_t *dt2);
00168 
00174     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00175     rampart_print_info(const axutil_env_t *env, axis2_char_t* info);
00176 
00177     /* @} */
00178 #ifdef __cplusplus
00179 }
00180 #endif
00181 
00182 #endif    /* !RAMPART_UTIL_H */
00183 
00184 

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