trust_rstr.h

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_RSTR_H
00020 #define TRUST_RSTR_H
00021 
00022 #include <stdio.h>
00023 #include <stdlib.h>
00024 #include <axutil_utils.h>
00025 #include <axutil_string.h>
00026 #include <axutil_base64.h>
00027 #include <axiom_soap.h>
00028 #include <axiom.h>
00029 #include <trust_constants.h>
00030 #include <trust_entropy.h>
00031 #include <trust_life_time.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037     
00038     typedef struct trust_rstr trust_rstr_t;
00039     
00040     AXIS2_EXTERN trust_rstr_t * AXIS2_CALL
00041     trust_rstr_create(
00042         const axutil_env_t *env);
00043     
00044     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00045     trust_rstr_free(
00046         trust_rstr_t *rstr,
00047         const axutil_env_t *env);
00048     
00049     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00050     trust_rstr_populate_rstr(
00051         trust_rstr_t *rstr,
00052         const axutil_env_t *env,
00053         axiom_node_t *rstr_node);
00054     
00055     AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00056     trust_rstr_build_rstr(
00057         trust_rstr_t *rstr,
00058         const axutil_env_t *env,
00059         axiom_node_t *parent);
00060     
00061     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
00062     trust_rstr_get_token_type(
00063         trust_rstr_t *rstr,
00064         const axutil_env_t *env);
00065     
00066     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00067     trust_rstr_set_token_type(
00068         trust_rstr_t *rstr,
00069         const axutil_env_t *env,
00070         axis2_char_t *token_type);
00071     
00072     
00073     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
00074     trust_rstr_get_request_type(
00075         trust_rstr_t *rstr,
00076         const axutil_env_t *env);
00077     
00078     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00079     trust_rstr_set_request_type(
00080         trust_rstr_t *rstr,
00081         const axutil_env_t *env,
00082         axis2_char_t *request_type);
00083     
00084     AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00085     trust_rstr_get_requested_security_token(
00086         trust_rstr_t *rstr,
00087         const axutil_env_t *env);
00088     
00089     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00090     trust_rstr_set_requested_security_token(
00091         trust_rstr_t *rstr,
00092         const axutil_env_t *env,
00093         axiom_node_t *security_token);
00094     
00095     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
00096     trust_rstr_get_applies_to(
00097         trust_rstr_t *rstr,
00098         const axutil_env_t *env);
00099     
00100     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00101     trust_rstr_set_applies_to(
00102         trust_rstr_t *rstr,
00103         const axutil_env_t *env,
00104         axis2_char_t *applies_to);
00105     
00106     AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00107     trust_rstr_get_requested_attached_reference(
00108         trust_rstr_t *rstr,
00109         const axutil_env_t *env);
00110     
00111     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00112     trust_rstr_set_requested_attached_reference(
00113         trust_rstr_t *rstr,
00114         const axutil_env_t *env,
00115         axiom_node_t *ref_node);
00116     
00117     AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00118     trust_rstr_get_requested_unattached_reference(
00119         trust_rstr_t *rstr,
00120         const axutil_env_t *env);
00121     
00122     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00123     trust_rstr_set_requested_unattached_reference(
00124         trust_rstr_t *rstr,
00125         const axutil_env_t *env,
00126         axiom_node_t *ref_node);
00127     
00128     AXIS2_EXTERN  axiom_node_t * AXIS2_CALL
00129     trust_rstr_get_requested_proof_token(
00130         trust_rstr_t *rstr,
00131         const axutil_env_t *env);
00132     
00133     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00134     trust_rstr_set_requested_proof_token(
00135         trust_rstr_t *rstr,
00136         const axutil_env_t *env,
00137         axiom_node_t *proof_token);
00138     
00139     AXIS2_EXTERN trust_entropy_t * AXIS2_CALL
00140     trust_rstr_get_entropy(
00141         trust_rstr_t *rstr,
00142         const axutil_env_t *env);
00143     
00144     AXIS2_EXTERN  axis2_status_t AXIS2_CALL
00145     trust_rstr_set_entropy(
00146         trust_rstr_t *rstr,
00147         const axutil_env_t *env,
00148         trust_entropy_t *entropy);
00149     
00150     AXIS2_EXTERN trust_life_time_t* AXIS2_CALL
00151     trust_rstr_get_life_time(
00152         trust_rstr_t *rstr,
00153         const axutil_env_t *env);
00154     
00155     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00156     trust_rstr_set_life_time(
00157         trust_rstr_t *rstr,
00158         const axutil_env_t *env,
00159         trust_life_time_t *life_time);
00160     
00161     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00162     trust_rstr_get_in_header(
00163         trust_rstr_t *rstr,
00164         const axutil_env_t *env);
00165     
00166     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00167     trust_rstr_set_in_header(
00168         trust_rstr_t *rstr,
00169         const axutil_env_t *env,
00170         axis2_bool_t in_header); 
00171         
00172     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00173         trust_rstr_set_wst_ns_uri(
00174         trust_rstr_t *rstr,
00175         const axutil_env_t *env,
00176         axis2_char_t *wst_ns_uri);
00177 
00178     AXIS2_EXTERN int AXIS2_CALL
00179     trust_rstr_get_key_size(
00180         trust_rstr_t *rstr,
00181         const axutil_env_t *env);
00182 
00183     AXIS2_EXTERN  axis2_status_t AXIS2_CALL
00184     trust_rstr_set_key_size(
00185         trust_rstr_t *rstr,
00186         const axutil_env_t *env,
00187         int key_size);
00188 
00189     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
00190     trust_rstr_get_wst_ns_uri(
00191             trust_rstr_t *rstr,
00192             const axutil_env_t *env);    
00193      
00194 
00195 #ifdef __cplusplus
00196 }
00197 #endif
00198 
00199 #endif

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