# trust_life_time.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  * limitations under the License.
    00016  */
    00017
    00018 #ifndef TRUST_LIFETIME_H
    00019 #define TRUST_LIFETIME_H
    00020
    00021 #include <stdio.h>
    00022 #include <stdlib.h>
    00023 #include <axutil_utils.h>
    00024 #include <axutil_string.h>
    00025 #include <axutil_base64.h>
    00026 #include <axiom_soap.h>
    00027 #include <axiom.h>
    00028 #include <axis2_msg_ctx.h>
    00029 #include <axis2_addr.h>
    00030
    00031 #include <trust_constants.h>
    00032 #include <trust_util.h>
    00033
    00034 #ifdef __cplusplus
    00035 extern "C"
    00036 {
    00037 #endif
    00038
    00039     typedef struct trust_life_time trust_life_time_t;
    00040
    00041     AXIS2_EXTERN trust_life_time_t * AXIS2_CALL
    00042     trust_life_time_create(
    00043         const axutil_env_t *env);
    00044
    00045     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00046     trust_life_time_free(
    00047         trust_life_time_t *life_time,
    00048         const axutil_env_t *env);
    00049
    00050     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00051     trust_life_time_deserialize(
    00052         trust_life_time_t *life_time,
    00053         const axutil_env_t *env,
    00054         axiom_node_t *life_time_node);
    00055
    00056     AXIS2_EXTERN axiom_node_t *AXIS2_CALL
    00057     trust_life_time_serialize(
    00058         trust_life_time_t *life_time,
    00059         const axutil_env_t *env,
    00060         axiom_node_t *parent);
    00061
    00062     AXIS2_EXTERN int AXIS2_CALL
    00063     trust_life_time_get_ttl(
    00064         trust_life_time_t *life_time,
    00065         const axutil_env_t *env);
    00066
    00067     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00068     trust_life_time_set_ttl(
    00069             trust_life_time_t *life_time,
    00070             const axutil_env_t *env,
    00071             int ttl);
    00072
    00073     AXIS2_EXTERN axutil_date_time_t * AXIS2_CALL
    00074     trust_life_time_get_created(
    00075             trust_life_time_t *life_time,
    00076             const axutil_env_t *env);
    00077
    00078     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00079     trust_life_time_set_created(
    00080             trust_life_time_t *life_time,
    00081             const axutil_env_t *env,
    00082             axutil_date_time_t *created);
    00083
    00084     AXIS2_EXTERN axutil_date_time_t * AXIS2_CALL
    00085     trust_life_time_get_expires(
    00086             trust_life_time_t *life_time,
    00087             const axutil_env_t *env);
    00088
    00089
    00090     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00091     trust_life_time_set_expires(
    00092             trust_life_time_t *life_time,
    00093             const axutil_env_t *env,
    00094             axutil_date_time_t *expires);
    00095
    00096
    00097     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
    00098     trust_life_time_get_ns_uri(
    00099             trust_life_time_t *life_time,
    00100             const axutil_env_t *env);
    00101
    00102
    00103     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00104     trust_life_time_set_ns_uri(
    00105             trust_life_time_t *life_time,
    00106             const axutil_env_t *env,
    00107             axis2_char_t *ns_uri);
    00108
    00109
    00110 #ifdef __cplusplus
    00111 }
    00112 #endif
    00113 #endif