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_issued_token.h>
00029 #include <rp_saml_token.h>
00030 #include <rp_security_context_token.h>
00031 #include <rp_https_token.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00038     typedef enum
00039     {
00040         RP_PROPERTY_USERNAME_TOKEN = 0,
00041         RP_PROPERTY_X509_TOKEN,
00042         RP_PROPERTY_ISSUED_TOKEN,
00043         RP_PROPERTY_SAML_TOKEN,
00044         RP_PROPERTY_SECURITY_CONTEXT_TOKEN,
00045         RP_PROPERTY_HTTPS_TOKEN,
00046         RP_PROPERTY_SYMMETRIC_BINDING,
00047         RP_PROPERTY_ASYMMETRIC_BINDING,
00048         RP_PROPERTY_TRANSPORT_BINDING,
00049         RP_PROPERTY_SIGNED_SUPPORTING_TOKEN,
00050         RP_PROPERTY_SIGNED_ENDORSING_SUPPORTING_TOKEN,
00051         RP_PROPERTY_SUPPORTING_SUPPORTING_TOKEN,
00052         RP_PROPERTY_ENDORSING_SUPPORTING_TOKEN,
00053         RP_PROPERTY_WSS10,
00054         RP_PROPERTY_WSS11,
00055         RP_PROPERTY_SUPPORTING_TOKEN,
00056         RP_PROPERTY_UNKNOWN
00057     } rp_property_type_t;
00058 
00059     typedef struct rp_property_t rp_property_t;
00060 
00061     AXIS2_EXTERN rp_property_t *AXIS2_CALL
00062     rp_property_create(
00063         const axutil_env_t * env);
00064 
00065     AXIS2_EXTERN void AXIS2_CALL
00066     rp_property_free(
00067         rp_property_t * property,
00068         const axutil_env_t * env);
00069 
00070     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00071     rp_property_set_value(
00072         rp_property_t * property,
00073         const axutil_env_t * env,
00074         void *value,
00075         rp_property_type_t type);
00076 
00077     AXIS2_EXTERN void *AXIS2_CALL
00078     rp_property_get_value(
00079         rp_property_t * property,
00080         const axutil_env_t * env);
00081 
00082     AXIS2_EXTERN rp_property_type_t AXIS2_CALL
00083     rp_property_get_type(
00084         rp_property_t * property,
00085         const axutil_env_t * env);
00086 
00087     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00088     rp_property_increment_ref(
00089         rp_property_t * property,
00090         const axutil_env_t * env);
00091 
00092 #ifdef __cplusplus
00093 }
00094 #endif
00095 #endif

Generated on Fri Apr 17 11:49:43 2009 for Axis2/C by  doxygen 1.5.3