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 RAMPART_USERNAME_TOKEN_H 00019 #define RAMPART_USERNAME_TOKEN_H 00020 00031 #ifdef __cplusplus 00032 extern "C" 00033 { 00034 #endif 00035 00036 00037 #include <axutil_env.h> 00038 #include <rampart_constants.h> 00039 #include <rampart_crypto_util.h> 00040 #include <rampart_context.h> 00041 00042 00043 axis2_status_t AXIS2_CALL 00044 rampart_username_token_build( 00045 const axutil_env_t *env, 00046 rampart_context_t *rampart_context, 00047 axiom_node_t *sec_node, 00048 axiom_namespace_t *sec_ns_obj); 00049 /* 00050 * Validates the given username token 00051 * @param env pointer to environment struct 00052 * @param msg_ctx axis2 message context 00053 * @param soap_header SOAP Header 00054 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE 00055 */ 00056 axis2_status_t AXIS2_CALL 00057 rampart_username_token_validate( 00058 const axutil_env_t *env, 00059 axis2_msg_ctx_t *msg_ctx, 00060 axiom_node_t *ut_node, 00061 rampart_context_t *rampart_context); 00062 00063 #ifdef __cplusplus 00064 } 00065 #endif 00066 00067 00068 #endif /*RAMPART_USERNAME_TOKEN_H*/