summaryrefslogtreecommitdiffstats
path: root/lasso/id-wsf-2.0/soap_binding.h
blob: b533a50c4d111932c21a5f8b54e3d6c0b7954809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/* $Id: wsf_profile.h,v 1.13 2006/11/14 17:07:30 Exp $
 *
 * Lasso - A free implementation of the Liberty Alliance specifications.
 *
 * Copyright (C) 2004-2007 Entr'ouvert
 * http://lasso.entrouvert.org
 *
 * Authors: See AUTHORS file in top-level directory.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __LASSO_IDWSF2_SOAP_BINDING_H__
#define __LASSO_IDWSF2_SOAP_BINDING_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "../export.h"
#include "../xml/soap-1.1/soap_envelope.h"
#include "../xml/soap-1.1/soap_fault.h"
#include "../xml/id-wsf-2.0/sb2_target_identity.h"
#include "../xml/id-wsf-2.0/sb2_user_interaction_header.h"
#include "../xml/ws/wsse_security_header.h"
#include "../xml/ws/wsa_attributed_uri.h"
#include "../xml/ws/wsa_relates_to.h"
#include "../xml/saml-2.0/saml2_assertion.h"

typedef enum {
	LASSO_IDWSF2_SB2_USER_INTERACTION_HINT_NONE,
	LASSO_IDWSF2_SB2_USER_INTERACTION_HINT_INTERACT_IF_NEEDED,
	LASSO_IDWSF2_SB2_USER_INTERACTION_HINT_DO_NOT_INTERACT,
	LASSO_IDWSF2_SB2_USER_INTERACTION_HINT_DO_NOT_INTERACT_FOR_DATA
} LassoIdWsf2Sb2UserInteractionHint;

LASSO_EXPORT char* lasso_soap_envelope_sb2_get_provider_id(LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT const char* lasso_soap_envelope_sb2_get_redirect_request_url(
		LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT LassoIdWsf2Sb2TargetIdentity* lasso_soap_envelope_sb2_get_target_identity_header(
		LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT LassoWsSec1SecurityHeader* lasso_soap_envelope_wssec_get_security_header(
		LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT void lasso_soap_envelope_add_security_token(LassoSoapEnvelope *soap_envelope,
		LassoNode *token);

LASSO_EXPORT LassoSaml2Assertion *lasso_soap_envelope_get_saml2_security_token(
		LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT const char* lasso_soap_envelope_get_action(LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT void lasso_soap_envelope_add_to_body(LassoSoapEnvelope *soap_envelope,
		LassoNode *content);

LASSO_EXPORT LassoWsAddrAttributedURI *lasso_soap_envelope_get_message_id(
		LassoSoapEnvelope *soap_envelope, gboolean create);

LASSO_EXPORT LassoWsAddrRelatesTo *lasso_soap_envelope_get_relates_to(LassoSoapEnvelope *envelope,
		gboolean create);

LASSO_EXPORT GList* lasso_soap_envelope_get_body_content(LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT void lasso_soap_fault_add_to_detail(LassoSoapFault *soap_fault,
		LassoNode *node);

LASSO_EXPORT LassoIdWsf2Sb2UserInteractionHeader *
		lasso_soap_envelope_get_sb2_user_interaction_header(
				LassoSoapEnvelope *soap_envelope, gboolean create);

LASSO_EXPORT LassoIdWsf2Sb2UserInteractionHint
		lasso_soap_envelope_get_sb2_user_interaction_hint( LassoSoapEnvelope *soap_envelope);

LASSO_EXPORT void lasso_soap_envelope_set_sb2_user_interaction_hint(
		LassoSoapEnvelope *soap_envelope, LassoIdWsf2Sb2UserInteractionHint hint);

LASSO_EXPORT void lasso_soap_envelope_add_action(LassoSoapEnvelope *soap_envelope,
		const char *action);

LASSO_EXPORT LassoSoapDetail *lasso_soap_fault_get_detail(LassoSoapFault *soap_fault,
		gboolean create);

LASSO_EXPORT LassoSoapFault* lasso_soap_envelope_get_soap_fault(LassoSoapEnvelope *soap_envelope,
		gboolean create);

LASSO_EXPORT void lasso_soap_envelope_set_relates_to(LassoSoapEnvelope *soap_envelope, char *value, char *relationship);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __LASSO_IDWSF2_SOAP_BINDING_H__ */