1
/* $Id: samlp_request.c,v 1.6 2004/08/13 15:16:13 fpeters Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
* Valery Febvre <vfebvre@easter-eggs.com>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
#include <lasso/xml/samlp_request.h>
29
<element name="Request" type="samlp:RequestType"/>
30
<complexType name="RequestType">
32
<extension base="samlp:RequestAbstractType">
34
<element ref="samlp:Query"/>
35
<element ref="samlp:SubjectQuery"/>
36
<element ref="samlp:AuthenticationQuery"/>
37
<element ref="samlp:AttributeQuery"/>
38
<element ref="samlp:AuthorizationDecisionQuery"/>
39
<element ref="saml:AssertionIDReference" maxOccurs="unbounded"/>
40
<element ref="samlp:AssertionArtifact" maxOccurs="unbounded"/>
46
<element name="AssertionArtifact" type="string"/>
50
/*****************************************************************************/
52
/*****************************************************************************/
55
lasso_samlp_request_set_assertionArtifact(LassoSamlpRequest *node,
56
const xmlChar *assertionArtifact)
58
LassoNodeClass *class;
59
g_assert(LASSO_IS_SAMLP_REQUEST(node));
60
g_assert(assertionArtifact != NULL);
62
class = LASSO_NODE_GET_CLASS(node);
63
class->new_child(LASSO_NODE (node), "AssertionArtifact", assertionArtifact, FALSE);
66
/*****************************************************************************/
67
/* instance and class init functions */
68
/*****************************************************************************/
71
lasso_samlp_request_instance_init(LassoSamlpRequest *node)
73
LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node));
75
/* namespace herited from samlp:RequestAbstract */
76
class->set_name(LASSO_NODE(node), "Request");
80
lasso_samlp_request_class_init(LassoSamlpRequestClass *klass)
84
GType lasso_samlp_request_get_type() {
85
static GType this_type = 0;
88
static const GTypeInfo this_info = {
89
sizeof (LassoSamlpRequestClass),
92
(GClassInitFunc) lasso_samlp_request_class_init,
95
sizeof(LassoSamlpRequest),
97
(GInstanceInitFunc) lasso_samlp_request_instance_init,
100
this_type = g_type_register_static(LASSO_TYPE_SAMLP_REQUEST_ABSTRACT,
107
LassoNode* lasso_samlp_request_new() {
108
return LASSO_NODE(g_object_new(LASSO_TYPE_SAMLP_REQUEST,