neethi_assertion.h

Go to the documentation of this file.
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 NEETHI_ASSERTION_H
00020 #define NEETHI_ASSERTION_H
00021 
00027 #include <axis2_defines.h>
00028 #include <axutil_env.h>
00029 #include <neethi_includes.h>
00030 #include <neethi_operator.h>
00031 
00032 #ifdef __cplusplus
00033 extern "C"
00034 {
00035 #endif
00036 
00037     typedef enum
00038     {
00039         ASSERTION_TYPE_TRANSPORT_BINDING = 0,
00040         ASSERTION_TYPE_TRANSPORT_TOKEN,
00041         ASSERTION_TYPE_ALGORITHM_SUITE,
00042         ASSERTION_TYPE_INCLUDE_TIMESTAMP,
00043         ASSERTION_TYPE_LAYOUT,
00044         ASSERTION_TYPE_SUPPORTING_TOKENS,
00045         ASSERTION_TYPE_HTTPS_TOKEN,
00046         ASSERTION_TYPE_WSS_USERNAME_TOKEN_10,
00047         ASSERTION_TYPE_WSS_USERNAME_TOKEN_11,
00048         ASSERTION_TYPE_USERNAME_TOKEN,
00049         ASSERTION_TYPE_X509_TOKEN,
00050         ASSERTION_TYPE_MUST_SUPPORT_REF_KEY_IDENTIFIER,
00051         ASSERTION_TYPE_MUST_SUPPORT_REF_ISSUER_SERIAL,
00052         ASSERTION_TYPE_MUST_SUPPORT_REF_EXTERNAL_URI,
00053         ASSERTION_TYPE_MUST_SUPPORT_REF_EMBEDDED_TOKEN,
00054         ASSERTION_TYPE_WSS10,
00055         ASSERTION_TYPE_WSS11,
00056         ASSERTION_TYPE_TRUST10,
00057         ASSERTION_TYPE_RAMPART_CONFIG,
00058         ASSERTION_TYPE_ASSYMMETRIC_BINDING,
00059         ASSERTION_TYPE_SYMMETRIC_BINDING,
00060         ASSERTION_TYPE_INITIATOR_TOKEN,
00061         ASSERTION_TYPE_RECIPIENT_TOKEN,
00062         ASSERTION_TYPE_PROTECTION_TOKEN,
00063         ASSERTION_TYPE_ENCRYPTION_TOKEN,
00064         ASSERTION_TYPE_SIGNATURE_TOKEN,
00065         ASSERTION_TYPE_ENCRYPT_BEFORE_SIGNING,
00066         ASSERTION_TYPE_SIGN_BEFORE_ENCRYPTING,
00067         ASSERTION_TYPE_ENCRYPT_SIGNATURE,
00068         ASSERTION_TYPE_PROTECT_TOKENS,
00069         ASSERTION_TYPE_ONLY_SIGN_ENTIRE_HEADERS_AND_BODY,
00070         ASSERTION_TYPE_REQUIRE_KEY_IDENTIFIRE_REFERENCE,
00071         ASSERTION_TYPE_REQUIRE_ISSUER_SERIAL_REFERENCE,
00072         ASSERTION_TYPE_REQUIRE_EMBEDDED_TOKEN_REFERENCE,
00073         ASSERTION_TYPE_REQUIRE_THUMBPRINT_REFERENCE,
00074         ASSERTION_TYPE_MUST_SUPPORT_REF_THUMBPRINT,
00075         ASSERTION_TYPE_MUST_SUPPORT_REF_ENCRYPTED_KEY,
00076         ASSERTION_TYPE_REQUIRE_SIGNATURE_CONFIRMATION,
00077         ASSERTION_TYPE_WSS_X509_V1_TOKEN_10,
00078         ASSERTION_TYPE_WSS_X509_V3_TOKEN_10,
00079         ASSERTION_TYPE_SIGNED_ENCRYPTED_PARTS,
00080         ASSERTION_TYPE_REQUIRE_DERIVED_KEYS,
00081         ASSERTION_TYPE_MUST_SUPPORT_CLIENT_CHALLENGE,
00082         ASSERTION_TYPE_MUST_SUPPORT_SERVER_CHALLENGE,
00083         ASSERTION_TYPE_REQUIRE_CLIENT_ENTROPY,
00084         ASSERTION_TYPE_REQUIRE_SERVER_ENTROPHY,
00085         ASSERTION_TYPE_MUST_SUPPORT_ISSUED_TOKENS,
00086         ASSERTION_TYPE_UNKNOWN
00087     } neethi_assertion_type_t;
00088 
00089     typedef struct neethi_assertion_t neethi_assertion_t;
00090 
00091     AXIS2_EXTERN neethi_assertion_t *AXIS2_CALL
00092     neethi_assertion_create(
00093         const axutil_env_t * env);
00094 
00095     neethi_assertion_t *AXIS2_CALL
00096     neethi_assertion_create_with_args(
00097         const axutil_env_t * env,
00098         AXIS2_FREE_VOID_ARG free_func,
00099         void *value,
00100         neethi_assertion_type_t type);
00101 
00102     AXIS2_EXTERN void AXIS2_CALL
00103     neethi_assertion_free(
00104         neethi_assertion_t * neethi_assertion,
00105         const axutil_env_t * env);
00106 
00107     AXIS2_EXTERN neethi_assertion_type_t AXIS2_CALL
00108     neethi_assertion_get_type(
00109         neethi_assertion_t * neethi_assertion,
00110         const axutil_env_t * env);
00111 
00112     AXIS2_EXTERN void *AXIS2_CALL
00113     neethi_assertion_get_value(
00114         neethi_assertion_t * neethi_assertion,
00115         const axutil_env_t * env);
00116 
00117     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00118     neethi_assertion_set_value(
00119         neethi_assertion_t * neethi_assertion,
00120         const axutil_env_t * env,
00121         void *value,
00122         neethi_assertion_type_t type);
00123 
00124     AXIS2_EXTERN axiom_element_t *AXIS2_CALL
00125     neethi_assertion_get_element(
00126         neethi_assertion_t * neethi_assertion,
00127         const axutil_env_t * env);
00128 
00129     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00130     neethi_assertion_set_element(
00131         neethi_assertion_t * neethi_assertion,
00132         const axutil_env_t * env,
00133         axiom_element_t * element);
00134 
00135     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00136     neethi_assertion_get_is_optional(
00137         neethi_assertion_t * neethi_assertion,
00138         const axutil_env_t * env);
00139 
00140     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00141     neethi_assertion_set_is_optional(
00142         neethi_assertion_t * neethi_assertion,
00143         const axutil_env_t * env,
00144         axis2_bool_t is_optional);
00145 
00146     AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
00147     neethi_assertion_get_policy_components(
00148         neethi_assertion_t * neethi_assertion,
00149         const axutil_env_t * env);
00150 
00151     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00152     neethi_assertion_add_policy_components(
00153         neethi_assertion_t * neethi_assertion,
00154         axutil_array_list_t * arraylist,
00155         const axutil_env_t * env);
00156 
00157     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00158     neethi_assertion_add_operator(
00159         neethi_assertion_t * neethi_assertion,
00160         const axutil_env_t * env,
00161         neethi_operator_t * op);
00162 
00163     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00164     neethi_assertion_is_empty(
00165         neethi_assertion_t * neethi_assertion,
00166         const axutil_env_t * env);
00167 
00168     AXIS2_EXTERN axiom_node_t *AXIS2_CALL
00169     neethi_assertion_get_node(
00170         neethi_assertion_t * neethi_assertion,
00171         const axutil_env_t * env);
00172 
00173     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00174     neethi_assertion_set_node(
00175         neethi_assertion_t * neethi_assertion,
00176         const axutil_env_t * env,
00177         axiom_node_t * node);
00178 
00179     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00180     neethi_assertion_serialize(
00181         neethi_assertion_t * assertion,
00182         axiom_node_t * parent,
00183         const axutil_env_t * env);
00184 
00186 #ifdef __cplusplus
00187 }
00188 #endif
00189 
00190 #endif                          /* NEETHI_ASSERTION_H */

Generated on Tue Jan 8 01:28:17 2008 for Axis2/C by  doxygen 1.5.1