1
/* $Id: federation.h,v 1.3 2004/08/11 21:14:45 valos 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
#ifndef __LASSO_FEDERATION_H__
27
#define __LASSO_FEDERATION_H__
31
#endif /* __cplusplus */
33
#include <lasso/xml/xml.h>
34
#include <lasso/xml/saml_name_identifier.h>
36
#define LASSO_TYPE_FEDERATION (lasso_federation_get_type())
37
#define LASSO_FEDERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_FEDERATION, LassoFederation))
38
#define LASSO_FEDERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_FEDERATION, LassoFederationClass))
39
#define LASSO_IS_FEDERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_FEDERATION))
40
#define LASSO_IS_FEDERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_FEDERATION))
41
#define LASSO_FEDERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_FEDERATION, LassoFederationClass))
43
#define LASSO_FEDERATION_NODE "Federation"
44
#define LASSO_FEDERATION_REMOTE_PROVIDERID_NODE "RemoteProviderID"
45
#define LASSO_FEDERATION_LOCAL_NAME_IDENTIFIER_NODE "LocalNameIdentifier"
46
#define LASSO_FEDERATION_REMOTE_NAME_IDENTIFIER_NODE "RemoteNameIdentifier"
48
typedef struct _LassoFederation LassoFederation;
49
typedef struct _LassoFederationClass LassoFederationClass;
50
typedef struct _LassoFederationPrivate LassoFederationPrivate;
52
struct _LassoFederation {
55
gchar *remote_providerID;
57
LassoNode *local_nameIdentifier;
58
LassoNode *remote_nameIdentifier;
61
LassoFederationPrivate *private;
64
struct _LassoFederationClass {
68
LASSO_EXPORT GType lasso_federation_get_type (void);
70
LASSO_EXPORT LassoFederation* lasso_federation_new (gchar *remote_providerID);
72
LASSO_EXPORT LassoFederation* lasso_federation_new_from_dump (gchar *dump);
74
LASSO_EXPORT LassoFederation* lasso_federation_copy (LassoFederation *federation);
76
LASSO_EXPORT void lasso_federation_destroy (LassoFederation *federation);
78
LASSO_EXPORT gchar* lasso_federation_dump (LassoFederation *federation);
80
LASSO_EXPORT LassoNode* lasso_federation_get_remote_nameIdentifier (LassoFederation *federation);
82
LASSO_EXPORT LassoNode* lasso_federation_get_local_nameIdentifier (LassoFederation *federation);
84
LASSO_EXPORT void lasso_federation_remove_local_nameIdentifier (LassoFederation *federation);
86
LASSO_EXPORT void lasso_federation_remove_remote_nameIdentifier (LassoFederation *federation);
88
LASSO_EXPORT void lasso_federation_set_local_nameIdentifier (LassoFederation *federation,
89
LassoNode *nameIdentifier);
91
LASSO_EXPORT void lasso_federation_set_remote_nameIdentifier (LassoFederation *federation,
92
LassoNode *nameIdentifier);
94
LASSO_EXPORT gboolean lasso_federation_verify_nameIdentifier (LassoFederation *federation,
95
LassoNode *nameIdentifier);
99
#endif /* __cplusplus */
101
#endif /* __LASSO_FEDERATION_H__ */