Blame lasso/xml/disco_description.h

Packit 228f82
/* $Id$
Packit 228f82
 *
Packit 228f82
 * Lasso - A free implementation of the Liberty Alliance specifications.
Packit 228f82
 *
Packit 228f82
 * Copyright (C) 2004-2007 Entr'ouvert
Packit 228f82
 * http://lasso.entrouvert.org
Packit 228f82
 *
Packit 228f82
 * Authors: See AUTHORS file in top-level directory.
Packit 228f82
 *
Packit 228f82
 * This program is free software; you can redistribute it and/or modify
Packit 228f82
 * it under the terms of the GNU General Public License as published by
Packit 228f82
 * the Free Software Foundation; either version 2 of the License, or
Packit 228f82
 * (at your option) any later version.
Packit 228f82
 *
Packit 228f82
 * This program is distributed in the hope that it will be useful,
Packit 228f82
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 228f82
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 228f82
 * GNU General Public License for more details.
Packit 228f82
 *
Packit 228f82
 * You should have received a copy of the GNU General Public License
Packit 228f82
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit 228f82
 */
Packit 228f82
Packit 228f82
#ifndef __LASSO_DISCO_DESCRIPTION_H__
Packit 228f82
#define __LASSO_DISCO_DESCRIPTION_H__
Packit 228f82
Packit 228f82
#ifdef __cplusplus
Packit 228f82
extern "C" {
Packit 228f82
#endif /* __cplusplus */
Packit 228f82
Packit 228f82
#include "xml.h"
Packit 228f82
Packit 228f82
#define LASSO_TYPE_DISCO_DESCRIPTION (lasso_disco_description_get_type())
Packit 228f82
#define LASSO_DISCO_DESCRIPTION(obj) \
Packit 228f82
	(G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_DISCO_DESCRIPTION, LassoDiscoDescription))
Packit 228f82
#define LASSO_DISCO_DESCRIPTION_CLASS(klass) \
Packit 228f82
	(G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_DISCO_DESCRIPTION, \
Packit 228f82
				 LassoDiscoDescriptionClass))
Packit 228f82
#define LASSO_IS_DISCO_DESCRIPTION(obj) \
Packit 228f82
	(G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_DISCO_DESCRIPTION))
Packit 228f82
#define LASSO_IS_DISCO_DESCRIPTION_CLASS(klass) \
Packit 228f82
	(G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_DISCO_DESCRIPTION))
Packit 228f82
#define LASSO_DISCO_DESCRIPTION_GET_CLASS(o) \
Packit 228f82
	(G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_DISCO_DESCRIPTION, \
Packit 228f82
				    LassoDiscoDescriptionClass))
Packit 228f82
Packit 228f82
typedef struct _LassoDiscoDescription LassoDiscoDescription;
Packit 228f82
typedef struct _LassoDiscoDescriptionClass LassoDiscoDescriptionClass;
Packit 228f82
Packit 228f82
struct _LassoDiscoDescription {
Packit 228f82
	LassoNode parent;
Packit 228f82
Packit 228f82
	/*
Packit 228f82
	 * - The service instance description SHOULD list of all of the security mechanisms that
Packit 228f82
	 *   the service instance supports.
Packit 228f82
	 * - The client SHOULD pick the first mechanism (in the order listed) that it supports;
Packit 228f82
	 *   the description SHOULD list them in order of preference, to avoid situations where the
Packit 228f82
	 *   client fails to gain access to the service because it picked the wrong security
Packit 228f82
	 *   mechanism.
Packit 228f82
	 */
Packit 228f82
	GList *SecurityMechID; /* of strings */
Packit 228f82
	GList *CredentialRef; /* of strings */
Packit 228f82
Packit 228f82
	/* WsdlRef group */
Packit 228f82
	gchar *WsdlURI;
Packit 228f82
	gchar *ServiceNameRef;
Packit 228f82
Packit 228f82
	/* BriefSoapHttpDescription group */
Packit 228f82
	gchar *Endpoint;
Packit 228f82
	gchar *SoapAction;
Packit 228f82
Packit 228f82
	char *id;
Packit 228f82
};
Packit 228f82
Packit 228f82
struct _LassoDiscoDescriptionClass {
Packit 228f82
	LassoNodeClass parent;
Packit 228f82
};
Packit 228f82
Packit 228f82
LASSO_EXPORT GType lasso_disco_description_get_type (void);
Packit 228f82
Packit 228f82
LASSO_EXPORT LassoDiscoDescription *lasso_disco_description_copy(
Packit 228f82
	LassoDiscoDescription *description);
Packit 228f82
Packit 228f82
LASSO_EXPORT LassoDiscoDescription* lasso_disco_description_new();
Packit 228f82
Packit 228f82
LASSO_EXPORT LassoDiscoDescription* lasso_disco_description_new_with_WsdlRef(
Packit 228f82
	const gchar *securityMechID,
Packit 228f82
	const gchar *wsdlURI,
Packit 228f82
	const gchar *serviceNameRef);
Packit 228f82
Packit 228f82
LASSO_EXPORT LassoDiscoDescription* lasso_disco_description_new_with_BriefSoapHttpDescription(
Packit 228f82
	const gchar *securityMechID,
Packit 228f82
	const gchar *endpoint,
Packit 228f82
	const gchar *soapAction);
Packit 228f82
Packit 228f82
LASSO_EXPORT gboolean lasso_disco_description_has_saml_authentication(
Packit 228f82
	LassoDiscoDescription *description);
Packit 228f82
Packit 228f82
LASSO_EXPORT gboolean lasso_disco_description_has_x509_authentication(
Packit 228f82
	LassoDiscoDescription *description);
Packit 228f82
Packit 228f82
#ifdef __cplusplus
Packit 228f82
}
Packit 228f82
#endif /* __cplusplus */
Packit 228f82
Packit 228f82
#endif /* __LASSO_DISCO_DESCRIPTION_H__ */