1 /* $Id$ 2 * 3 * Lasso - A free implementation of the Liberty Alliance specifications. 4 * 5 * Copyright (C) 2004-2007 Entr'ouvert 6 * http://lasso.entrouvert.org 7 * 8 * Authors: See AUTHORS file in top-level directory. 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, see <http://www.gnu.org/licenses/>. 22 */ 23 24 #ifndef __LASSO_SAMLP2_AUTHN_REQUEST_H__ 25 #define __LASSO_SAMLP2_AUTHN_REQUEST_H__ 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif /* __cplusplus */ 30 31 #include "samlp2_request_abstract.h" 32 #include "saml2_conditions.h" 33 #include "samlp2_requested_authn_context.h" 34 #include "saml2_subject.h" 35 #include "samlp2_scoping.h" 36 #include "samlp2_name_id_policy.h" 37 38 #define LASSO_TYPE_SAMLP2_AUTHN_REQUEST (lasso_samlp2_authn_request_get_type()) 39 #define LASSO_SAMLP2_AUTHN_REQUEST(obj) \ 40 (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_SAMLP2_AUTHN_REQUEST, \ 41 LassoSamlp2AuthnRequest)) 42 #define LASSO_SAMLP2_AUTHN_REQUEST_CLASS(klass) \ 43 (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_SAMLP2_AUTHN_REQUEST, \ 44 LassoSamlp2AuthnRequestClass)) 45 #define LASSO_IS_SAMLP2_AUTHN_REQUEST(obj) \ 46 (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_SAMLP2_AUTHN_REQUEST)) 47 #define LASSO_IS_SAMLP2_AUTHN_REQUEST_CLASS(klass) \ 48 (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_SAMLP2_AUTHN_REQUEST)) 49 #define LASSO_SAMLP2_AUTHN_REQUEST_GET_CLASS(o) \ 50 (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_SAMLP2_AUTHN_REQUEST, \ 51 LassoSamlp2AuthnRequestClass)) 52 53 typedef struct _LassoSamlp2AuthnRequest LassoSamlp2AuthnRequest; 54 typedef struct _LassoSamlp2AuthnRequestClass LassoSamlp2AuthnRequestClass; 55 56 57 struct _LassoSamlp2AuthnRequest { 58 LassoSamlp2RequestAbstract parent; 59 60 /*< public >*/ 61 /* elements */ 62 LassoSaml2Subject *Subject; 63 LassoSamlp2NameIDPolicy *NameIDPolicy; 64 LassoSaml2Conditions *Conditions; 65 LassoSamlp2RequestedAuthnContext *RequestedAuthnContext; 66 LassoSamlp2Scoping *Scoping; 67 /* attributes */ 68 gboolean ForceAuthn; 69 gboolean IsPassive; 70 char *ProtocolBinding; 71 int AssertionConsumerServiceIndex; 72 char *AssertionConsumerServiceURL; 73 int AttributeConsumingServiceIndex; 74 char *ProviderName; 75 76 /* This field is deprecated do not use it, 77 * kept for ABI compatibility */ 78 /*< private >*/ 79 G_GNUC_DEPRECATED char *relayState; 80 }; 81 82 83 struct _LassoSamlp2AuthnRequestClass { 84 LassoSamlp2RequestAbstractClass parent; 85 }; 86 87 LASSO_EXPORT GType lasso_samlp2_authn_request_get_type(void); 88 LASSO_EXPORT LassoNode* lasso_samlp2_authn_request_new(void); 89 90 91 92 #ifdef __cplusplus 93 } 94 #endif /* __cplusplus */ 95 96 #endif /* __LASSO_SAMLP2_AUTHN_REQUEST_H__ */ 97