Axis2/C: neethi_assertion.h Source File

- Main Page
- Modules
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

# 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_SAML_TOKEN,
    00051             ASSERTION_TYPE_ISSUED_TOKEN,
    00052         ASSERTION_TYPE_SECURITY_CONTEXT_TOKEN,
    00053         ASSERTION_TYPE_REQUIRE_EXTERNAL_URI,
    00054         ASSERTION_TYPE_SC10_SECURITY_CONTEXT_TOKEN,
    00055         ASSERTION_TYPE_SC13_SECURITY_CONTEXT_TOKEN,
    00056         ASSERTION_TYPE_ISSUER,
    00057         ASSERTION_TYPE_BOOTSTRAP_POLICY,
    00058         ASSERTION_TYPE_MUST_SUPPORT_REF_KEY_IDENTIFIER,
    00059         ASSERTION_TYPE_MUST_SUPPORT_REF_ISSUER_SERIAL,
    00060         ASSERTION_TYPE_MUST_SUPPORT_REF_EXTERNAL_URI,
    00061         ASSERTION_TYPE_MUST_SUPPORT_REF_EMBEDDED_TOKEN,
    00062         ASSERTION_TYPE_WSS10,
    00063         ASSERTION_TYPE_WSS11,
    00064         ASSERTION_TYPE_TRUST10,
    00065         ASSERTION_TYPE_RAMPART_CONFIG,
    00066         ASSERTION_TYPE_ASSYMMETRIC_BINDING,
    00067         ASSERTION_TYPE_SYMMETRIC_BINDING,
    00068         ASSERTION_TYPE_INITIATOR_TOKEN,
    00069         ASSERTION_TYPE_RECIPIENT_TOKEN,
    00070         ASSERTION_TYPE_PROTECTION_TOKEN,
    00071         ASSERTION_TYPE_ENCRYPTION_TOKEN,
    00072         ASSERTION_TYPE_SIGNATURE_TOKEN,
    00073         ASSERTION_TYPE_ENCRYPT_BEFORE_SIGNING,
    00074         ASSERTION_TYPE_SIGN_BEFORE_ENCRYPTING,
    00075         ASSERTION_TYPE_ENCRYPT_SIGNATURE,
    00076         ASSERTION_TYPE_PROTECT_TOKENS,
    00077         ASSERTION_TYPE_ONLY_SIGN_ENTIRE_HEADERS_AND_BODY,
    00078         ASSERTION_TYPE_REQUIRE_KEY_IDENTIFIRE_REFERENCE,
    00079         ASSERTION_TYPE_REQUIRE_ISSUER_SERIAL_REFERENCE,
    00080         ASSERTION_TYPE_REQUIRE_EMBEDDED_TOKEN_REFERENCE,
    00081         ASSERTION_TYPE_REQUIRE_THUMBPRINT_REFERENCE,
    00082         ASSERTION_TYPE_REQUIRE_EXTERNAL_REFERENCE,
    00083             ASSERTION_TYPE_REQUIRE_INTERNAL_REFERENCE,
    00084         ASSERTION_TYPE_MUST_SUPPORT_REF_THUMBPRINT,
    00085         ASSERTION_TYPE_MUST_SUPPORT_REF_ENCRYPTED_KEY,
    00086         ASSERTION_TYPE_REQUIRE_SIGNATURE_CONFIRMATION,
    00087         ASSERTION_TYPE_WSS_X509_V1_TOKEN_10,
    00088         ASSERTION_TYPE_WSS_X509_V3_TOKEN_10,
    00089         ASSERTION_TYPE_WSS_SAML_V10_TOKEN_V10,
    00090             ASSERTION_TYPE_WSS_SAML_V10_TOKEN_V11,
    00091             ASSERTION_TYPE_WSS_SAML_V11_TOKEN_V10,
    00092             ASSERTION_TYPE_WSS_SAML_V11_TOKEN_V11,
    00093             ASSERTION_TYPE_WSS_SAML_V20_TOKEN_V11,
    00094         ASSERTION_TYPE_SIGNED_ENCRYPTED_PARTS,
    00095         ASSERTION_TYPE_REQUIRE_DERIVED_KEYS_SC10,
    00096         ASSERTION_TYPE_REQUIRE_DERIVED_KEYS_SC13,
    00097         ASSERTION_TYPE_MUST_SUPPORT_CLIENT_CHALLENGE,
    00098         ASSERTION_TYPE_MUST_SUPPORT_SERVER_CHALLENGE,
    00099         ASSERTION_TYPE_REQUIRE_CLIENT_ENTROPY,
    00100         ASSERTION_TYPE_REQUIRE_SERVER_ENTROPHY,
    00101         ASSERTION_TYPE_MUST_SUPPORT_ISSUED_TOKENS,
    00102         ASSERTION_TYPE_OPTIMIZED_MIME_SERIALIZATION,
    00103         ASSERTION_TYPE_RM_ASSERTION,
    00104         ASSERTION_TYPE_UNKNOWN
    00105     } neethi_assertion_type_t;
    00106
    00107     typedef struct neethi_assertion_t neethi_assertion_t;
    00108
    00109     AXIS2_EXTERN neethi_assertion_t *AXIS2_CALL
    00110     neethi_assertion_create(
    00111         const axutil_env_t * env);
    00112
    00113     neethi_assertion_t *AXIS2_CALL
    00114     neethi_assertion_create_with_args(
    00115         const axutil_env_t * env,
    00116         AXIS2_FREE_VOID_ARG free_func,
    00117         void *value,
    00118         neethi_assertion_type_t type);
    00119
    00120     AXIS2_EXTERN void AXIS2_CALL
    00121     neethi_assertion_free(
    00122         neethi_assertion_t * neethi_assertion,
    00123         const axutil_env_t * env);
    00124
    00125     AXIS2_EXTERN neethi_assertion_type_t AXIS2_CALL
    00126     neethi_assertion_get_type(
    00127         neethi_assertion_t * neethi_assertion,
    00128         const axutil_env_t * env);
    00129
    00130     AXIS2_EXTERN void *AXIS2_CALL
    00131     neethi_assertion_get_value(
    00132         neethi_assertion_t * neethi_assertion,
    00133         const axutil_env_t * env);
    00134
    00135     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00136     neethi_assertion_set_value(
    00137         neethi_assertion_t * neethi_assertion,
    00138         const axutil_env_t * env,
    00139         void *value,
    00140         neethi_assertion_type_t type);
    00141
    00142     AXIS2_EXTERN axiom_element_t *AXIS2_CALL
    00143     neethi_assertion_get_element(
    00144         neethi_assertion_t * neethi_assertion,
    00145         const axutil_env_t * env);
    00146
    00147     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00148     neethi_assertion_set_element(
    00149         neethi_assertion_t * neethi_assertion,
    00150         const axutil_env_t * env,
    00151         axiom_element_t * element);
    00152
    00153     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00154     neethi_assertion_get_is_optional(
    00155         neethi_assertion_t * neethi_assertion,
    00156         const axutil_env_t * env);
    00157
    00158     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00159     neethi_assertion_set_is_optional(
    00160         neethi_assertion_t * neethi_assertion,
    00161         const axutil_env_t * env,
    00162         axis2_bool_t is_optional);
    00163
    00164     AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
    00165     neethi_assertion_get_policy_components(
    00166         neethi_assertion_t * neethi_assertion,
    00167         const axutil_env_t * env);
    00168
    00169     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00170     neethi_assertion_add_policy_components(
    00171         neethi_assertion_t * neethi_assertion,
    00172         axutil_array_list_t * arraylist,
    00173         const axutil_env_t * env);
    00174
    00175     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00176     neethi_assertion_add_operator(
    00177         neethi_assertion_t * neethi_assertion,
    00178         const axutil_env_t * env,
    00179         neethi_operator_t * op);
    00180
    00181     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00182     neethi_assertion_is_empty(
    00183         neethi_assertion_t * neethi_assertion,
    00184         const axutil_env_t * env);
    00185
    00186     AXIS2_EXTERN axiom_node_t *AXIS2_CALL
    00187     neethi_assertion_get_node(
    00188         neethi_assertion_t * neethi_assertion,
    00189         const axutil_env_t * env);
    00190
    00191     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00192     neethi_assertion_set_node(
    00193         neethi_assertion_t * neethi_assertion,
    00194         const axutil_env_t * env,
    00195         axiom_node_t * node);
    00196
    00197     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00198     neethi_assertion_serialize(
    00199         neethi_assertion_t * assertion,
    00200         axiom_node_t * parent,
    00201         const axutil_env_t * env);
    00202
    00204 #ifdef __cplusplus
    00205 }
    00206 #endif
    00207
    00208 #endif                          /* NEETHI_ASSERTION_H */