# rampart_issued_token.h

    00001 /*
    00002  * Licensed to the Apache Software Foundation (ASF) under one or more
    00003  * contributor license agreements.  See the NOTICE file distributed with
    00004  * this work for additional information regarding copyright ownership.
    00005  * The ASF licenses this file to You under the Apache License, Version 2.0
    00006  * (the "License"); you may not use this file except in compliance with
    00007  * the License.  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  */
    00016
    00017 #ifndef RAMPART_ISSUED_TOKEN_H
    00018 #define RAMPART_ISSUED_TOKEN_H
    00019
    00020 #include <rp_property.h>
    00021 #include <rp_includes.h>
    00022 #include <rp_secpolicy.h>
    00023 #include <axutil_property.h>
    00024 #include <axis2_key_type.h>
    00025 #include <axis2_msg_ctx.h>
    00026 #include <axutil_array_list.h>
    00027 #include <axiom.h>
    00028
    00029 #ifdef __cplusplus
    00030 extern "C"
    00031 {
    00032 #endif
    00033
    00034         typedef struct rampart_issued_token_t rampart_issued_token_t;
    00035
    00036         typedef rampart_issued_token_t *(AXIS2_CALL * issued_token_callback_func)(
    00037                 const axutil_env_t *env,
    00038                 rp_property_t *issued_token,
    00039         void *ctx);
    00048         AXIS2_EXTERN rampart_issued_token_t * AXIS2_CALL
    00049         rampart_issued_token_create(
    00050                 const axutil_env_t *env);
    00051
    00060         AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00061         rampart_issued_token_free(
    00062                 rampart_issued_token_t *token,
    00063                 const axutil_env_t *env);
    00064
    00075         AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00076         rampart_issued_token_set_token(
    00077                 rampart_issued_token_t *issued_token,
    00078                 const axutil_env_t *env, void *token,
    00079                 rp_property_type_t token_type);
    00088         AXIS2_EXTERN rp_property_type_t AXIS2_CALL
    00089         rampart_issued_token_get_token_type(
    00090                 rampart_issued_token_t *token,
    00091                 const axutil_env_t *env);
    00092
    00101         AXIS2_EXTERN void * AXIS2_CALL
    00102         rampart_issued_token_get_token(
    00103                 rampart_issued_token_t *token,
    00104                 const axutil_env_t *env);
    00105
    00106 #ifdef __cplusplus
    00107 }
    00108 #endif
    00109
    00110 #endif
    00111