oxs_saml_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  * limitations under the License.
00016  */
00017 
00018 #ifndef OXS_SAML_TOKEN_H
00019 #define OXS_SAML_TOKEN_H
00020 
00021 #include <oxs_tokens.h>
00022 #include <oxs_axiom.h>
00023 
00024 #ifdef __cplusplus
00025 extern "C"
00026 {
00027 #endif
00028 
00029     /* TODO OXS_ST_KEY_ID_VALUE_TYPE looks odd. Rename it properly */
00030 #define OXS_ST_KEY_ID_VALUE_TYPE    "http://docs.oasis-open.org/wss/oass-wss-saml-token-profile-1.0#SAMLAssertionID"
00031 
00032 AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00033 oxs_saml_token_build_key_identifier_reference_local(const axutil_env_t *env, 
00034                                              axiom_node_t *parent, 
00035                                              axiom_node_t *assertion);
00036 AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00037 oxs_saml_token_build_key_identifier_reference_remote(const axutil_env_t *env, 
00038                                              axiom_node_t *parent, 
00039                                              axiom_node_t *assertion, 
00040                                              axiom_node_t *auth_bind);
00041 
00042 AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00043 oxs_saml_token_build_embeded_reference(const axutil_env_t *env, 
00044                                              axiom_node_t *parent, 
00045                                              axiom_node_t *assertion);
00046 
00047 AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00048 oxs_saml_token_get_from_key_identifer_reference(const axutil_env_t *env, 
00049                                                     axiom_node_t *key_id,
00050                                                     axiom_node_t *scope);
00051 
00052 AXIS2_EXTERN axiom_node_t * AXIS2_CALL
00053 oxs_saml_token_get_from_embeded_reference(const axutil_env_t *env, 
00054                                                   axiom_node_t *embeded);
00055 
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060 
00061 
00062 #endif 
00063 

Generated on Wed Oct 14 01:02:16 2009 for Rampart/C by  doxygen 1.5.7.1