~ubuntu-branches/ubuntu/utopic/lasso/utopic-proposed

« back to all changes in this revision

Viewing changes to lasso/xml/saml_assertion.h

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2004-09-13 09:26:34 UTC
  • Revision ID: james.westby@ubuntu.com-20040913092634-01vdfl8j9cp94exa
Tags: upstream-0.4.1
ImportĀ upstreamĀ versionĀ 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: saml_assertion.h,v 1.8 2004/08/20 08:04:38 fpeters Exp $ 
 
2
 *
 
3
 * Lasso - A free implementation of the Liberty Alliance specifications.
 
4
 *
 
5
 * Copyright (C) 2004 Entr'ouvert
 
6
 * http://lasso.entrouvert.org
 
7
 * 
 
8
 * Authors: Nicolas Clapies <nclapies@entrouvert.com>
 
9
 *          Valery Febvre <vfebvre@easter-eggs.com>
 
10
 *
 
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.
 
15
 * 
 
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.
 
20
 * 
 
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
 
24
 */
 
25
 
 
26
#ifndef __LASSO_SAML_ASSERTION_H__
 
27
#define __LASSO_SAML_ASSERTION_H__
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C" {
 
31
#endif /* __cplusplus */ 
 
32
 
 
33
#include <lasso/xml/xml.h>
 
34
#include <lasso/xml/saml_advice.h>
 
35
#include <lasso/xml/saml_authentication_statement.h>
 
36
#include <lasso/xml/saml_conditions.h>
 
37
#include <lasso/xml/saml_statement_abstract.h>
 
38
#include <lasso/xml/saml_subject_statement_abstract.h>
 
39
 
 
40
#define LASSO_TYPE_SAML_ASSERTION (lasso_saml_assertion_get_type())
 
41
#define LASSO_SAML_ASSERTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_SAML_ASSERTION, LassoSamlAssertion))
 
42
#define LASSO_SAML_ASSERTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_SAML_ASSERTION, LassoSamlAssertionClass))
 
43
#define LASSO_IS_SAML_ASSERTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_SAML_ASSERTION))
 
44
#define LASSO_IS_SAML_ASSERTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_SAML_ASSERTION))
 
45
#define LASSO_SAML_ASSERTION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_SAML_ASSERTION, LassoSamlAssertionClass)) 
 
46
 
 
47
typedef struct _LassoSamlAssertion LassoSamlAssertion;
 
48
typedef struct _LassoSamlAssertionClass LassoSamlAssertionClass;
 
49
 
 
50
struct _LassoSamlAssertion {
 
51
  LassoNode parent;
 
52
  /*< private >*/
 
53
};
 
54
 
 
55
struct _LassoSamlAssertionClass {
 
56
  LassoNodeClass parent;
 
57
};
 
58
 
 
59
LASSO_EXPORT GType lasso_saml_assertion_get_type(void);
 
60
LASSO_EXPORT LassoNode* lasso_saml_assertion_new(void);
 
61
 
 
62
LASSO_EXPORT void lasso_saml_assertion_add_authenticationStatement (LassoSamlAssertion *node,
 
63
                                                                    LassoSamlAuthenticationStatement *authenticationStatement);
 
64
 
 
65
LASSO_EXPORT void lasso_saml_assertion_add_statement               (LassoSamlAssertion *node,
 
66
                                                                    LassoSamlStatementAbstract *statement);
 
67
 
 
68
LASSO_EXPORT void lasso_saml_assertion_add_subjectStatement        (LassoSamlAssertion *node,
 
69
                                                                    LassoSamlSubjectStatementAbstract *subjectStatement);
 
70
 
 
71
LASSO_EXPORT void lasso_saml_assertion_set_advice                  (LassoSamlAssertion *node,
 
72
                                                                    LassoSamlAdvice *advice);
 
73
 
 
74
LASSO_EXPORT void lasso_saml_assertion_set_assertionID             (LassoSamlAssertion *node,
 
75
                                                                    const xmlChar *assertionID);
 
76
 
 
77
LASSO_EXPORT void lasso_saml_assertion_set_conditions              (LassoSamlAssertion *node,
 
78
                                                                    LassoSamlConditions *conditions);
 
79
 
 
80
LASSO_EXPORT void lasso_saml_assertion_set_issueInstant            (LassoSamlAssertion *node,
 
81
                                                                    const xmlChar *issueInstant);
 
82
 
 
83
LASSO_EXPORT void lasso_saml_assertion_set_issuer                  (LassoSamlAssertion *node,
 
84
                                                                    const xmlChar *issuer);
 
85
 
 
86
LASSO_EXPORT void lasso_saml_assertion_set_majorVersion            (LassoSamlAssertion *node,
 
87
                                                                    const xmlChar *majorVersion);
 
88
 
 
89
LASSO_EXPORT void lasso_saml_assertion_set_minorVersion            (LassoSamlAssertion *node,
 
90
                                                                    const xmlChar *minorVersion);
 
91
 
 
92
LASSO_EXPORT gint lasso_saml_assertion_set_signature               (LassoSamlAssertion  *node,
 
93
                                                                    gint                 sign_method,
 
94
                                                                    const xmlChar       *private_key_file,
 
95
                                                                    const xmlChar       *certificate_file);
 
96
 
 
97
#ifdef __cplusplus
 
98
}
 
99
#endif /* __cplusplus */
 
100
 
 
101
#endif /* __LASSO_SAML_ASSERTION_H__ */