# rampart_config.h

Go to the documentation of this file.

    00001 /*
    00002  * Licensed to the Apache Software Foundation (ASF) under one or more
    00003  * contributor license agreements.  See the NOTICE file distributed with
    00004  * this work for additional information regarding copyright ownership.
    00005  * The ASF licenses this file to You under the Apache License, Version 2.0
    00006  * (the "License"); you may not use this file except in compliance with
    00007  * the License.  You may obtain a copy of the License at
    00008  *
    00009  *      http://www.apache.org/licenses/LICENSE-2.0
    00010  *
    00011  * Unless required by applicable law or agreed to in writing, software
    00012  * distributed under the License is distributed on an "AS IS" BASIS,
    00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014  * See the License for the specific language governing permissions and
    00015  * limitations under the License.
    00016  */
    00017
    00018 #ifndef RAMPART_CONFIG_H
    00019 #define RAMPART_CONFIG_H
    00020
    00032 #include <axis2_util.h>
    00033 #include <axis2_defines.h>
    00034 /*#include <axutil_utils_defines.h>*/
    00035 #include <axutil_env.h>
    00036 #include <rampart_saml_token.h>
    00037 #include <rampart_issued_token.h>
    00038
    00039 /*#include <rp_includes.h>
    00040 #include <rp_secpolicy.h>
    00041 #include <rampart_authn_provider.h>
    00042 #include <axutil_property.h>
    00043 #include <rampart_constants.h>
    00044 #include <rampart_callback.h>
    00045 #include <rampart_authn_provider.h>
    00046 #include <axis2_key_type.h>
    00047 #include <axis2_msg_ctx.h>
    00048 #include <oxs_key.h>
    00049 #include <axutil_array_list.h>
    00050 */
    00051
    00052 #ifdef __cplusplus
    00053 extern "C"
    00054 {
    00055 #endif
    00056
    00057     typedef struct rampart_config_t rampart_config_t;
    00058
    00064     AXIS2_EXTERN rampart_config_t *AXIS2_CALL
    00065     rampart_config_create(
    00066         const axutil_env_t *env);
    00067
    00073     AXIS2_EXTERN void AXIS2_CALL
    00074     rampart_config_free(
    00075         rampart_config_t *rampart_config,
    00076         const axutil_env_t *env);
    00077
    00085     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00086     rampart_config_set_username(
    00087         rampart_config_t *rampart_config,
    00088         const axutil_env_t *env,
    00089         axis2_char_t *user);
    00090
    00098     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00099     rampart_config_set_password(
    00100         rampart_config_t *rampart_config,
    00101         const axutil_env_t *env,
    00102         axis2_char_t *password);
    00103
    00111     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00112     rampart_config_set_password_type(
    00113         rampart_config_t *rampart_config,
    00114         const axutil_env_t *env,
    00115         axis2_char_t *password_type);
    00116
    00124     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00125     rampart_config_set_ttl(
    00126         rampart_config_t *rampart_config,
    00127         const axutil_env_t *env,
    00128         int ttl);
    00129
    00137         AXIS2_EXTERN int AXIS2_CALL
    00138         rampart_config_add_saml_token(
    00139         rampart_config_t *rampart_config,
    00140                 const axutil_env_t *env,
    00141                 rampart_saml_token_t *saml);
    00142
    00150         AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00151         rampart_config_set_issued_token_aquire_function(
    00152         rampart_config_t *rampart_config,
    00153                 const axutil_env_t *env,
    00154                 issued_token_callback_func issued_token_aquire);
    00155
    00162     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00163     rampart_config_get_username(
    00164         rampart_config_t *rampart_config,
    00165         const axutil_env_t *env);
    00166
    00173     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00174     rampart_config_get_password(
    00175         rampart_config_t *rampart_config,
    00176         const axutil_env_t *env);
    00177
    00184     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00185     rampart_config_get_password_type(
    00186         rampart_config_t *rampart_config,
    00187         const axutil_env_t *env);
    00188
    00195     AXIS2_EXTERN int AXIS2_CALL
    00196     rampart_config_get_ttl(
    00197         rampart_config_t *rampart_config,
    00198         const axutil_env_t *env);
    00199
    00206         AXIS2_EXTERN axutil_array_list_t * AXIS2_CALL
    00207         rampart_config_get_saml_tokens(
    00208         rampart_config_t *rampart_config,
    00209                 const axutil_env_t *env);
    00210
    00217         AXIS2_EXTERN issued_token_callback_func AXIS2_CALL
    00218         rampart_config_get_issued_token_aquire_function(
    00219         rampart_config_t *rampart_config,
    00220                 const axutil_env_t *env);
    00221
    00222     /* @} */
    00223 #ifdef __cplusplus
    00224 }
    00225 #endif
    00226
    00227 #endif /* RAMPART_CONFIG_H */
    00228