rp_property.h

00001 
00002 /*
00003  * Copyright 2004,2005 The Apache Software Foundation.
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * 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 RP_PROPERTY_H
00019 #define RP_PROPERTY_H
00020 
00025 #include <rp_includes.h>
00026 #include <rp_username_token.h>
00027 #include <rp_x509_token.h>
00028 #include <rp_security_context_token.h>
00029 #include <rp_https_token.h>
00030 
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035 
00036     typedef enum
00037     {
00038         RP_PROPERTY_USERNAME_TOKEN = 0,
00039         RP_PROPERTY_X509_TOKEN,
00040         RP_PROPERTY_SECURITY_CONTEXT_TOKEN,
00041         RP_PROPERTY_HTTPS_TOKEN,
00042         RP_PROPERTY_SYMMETRIC_BINDING,
00043         RP_PROPERTY_ASYMMETRIC_BINDING,
00044         RP_PROPERTY_TRANSPORT_BINDING,
00045         RP_PROPERTY_SIGNED_SUPPORTING_TOKEN,
00046         RP_PROPERTY_SIGNED_ENDORSING_SUPPORTING_TOKEN,
00047         RP_PROPERTY_SUPPORTING_SUPPORTING_TOKEN,
00048         RP_PROPERTY_ENDORSING_SUPPORTING_TOKEN,
00049         RP_PROPERTY_WSS10,
00050         RP_PROPERTY_WSS11,
00051         RP_PROPERTY_SUPPORTING_TOKEN,
00052         RP_PROPERTY_UNKNOWN
00053     } rp_property_type_t;
00054 
00055     typedef struct rp_property_t rp_property_t;
00056 
00057     AXIS2_EXTERN rp_property_t *AXIS2_CALL
00058     rp_property_create(
00059         const axutil_env_t * env);
00060 
00061     AXIS2_EXTERN void AXIS2_CALL
00062     rp_property_free(
00063         rp_property_t * property,
00064         const axutil_env_t * env);
00065 
00066     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00067     rp_property_set_value(
00068         rp_property_t * property,
00069         const axutil_env_t * env,
00070         void *value,
00071         rp_property_type_t type);
00072 
00073     AXIS2_EXTERN void *AXIS2_CALL
00074     rp_property_get_value(
00075         rp_property_t * property,
00076         const axutil_env_t * env);
00077 
00078     AXIS2_EXTERN rp_property_type_t AXIS2_CALL
00079     rp_property_get_type(
00080         rp_property_t * property,
00081         const axutil_env_t * env);
00082 
00083     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00084     rp_property_increment_ref(
00085         rp_property_t * property,
00086         const axutil_env_t * env);
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 #endif

Generated on Wed Jan 2 17:42:50 2008 for Axis2/C by  doxygen 1.5.1