001 //$HeadURL: http://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/ogcwebservices/wass/saml/Assertion.java $
002 /*----------------------------------------------------------------------------
003 This file is part of deegree, http://deegree.org/
004 Copyright (C) 2001-2009 by:
005 Department of Geography, University of Bonn
006 and
007 lat/lon GmbH
008
009 This library is free software; you can redistribute it and/or modify it under
010 the terms of the GNU Lesser General Public License as published by the Free
011 Software Foundation; either version 2.1 of the License, or (at your option)
012 any later version.
013 This library is distributed in the hope that it will be useful, but WITHOUT
014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016 details.
017 You should have received a copy of the GNU Lesser General Public License
018 along with this library; if not, write to the Free Software Foundation, Inc.,
019 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020
021 Contact information:
022
023 lat/lon GmbH
024 Aennchenstr. 19, 53177 Bonn
025 Germany
026 http://lat-lon.de/
027
028 Department of Geography, University of Bonn
029 Prof. Dr. Klaus Greve
030 Postfach 1147, 53001 Bonn
031 Germany
032 http://www.geographie.uni-bonn.de/deegree/
033
034 e-mail: info@deegree.org
035 ----------------------------------------------------------------------------*/
036
037 package org.deegree.ogcwebservices.wass.saml;
038
039 import java.util.ArrayList;
040 import java.util.Date;
041
042 /**
043 * Encapsulated data: Assertion element
044 *
045 * Namespace: http://urn:oasis:names:tc.SAML:1.0:assertion
046 *
047 * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a>
048 * @author last edited by: $Author: mschneider $
049 *
050 * @version 2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
051 *
052 * @since 2.0
053 */
054 public class Assertion {
055
056 private Conditions conditions = null;
057
058 private ArrayList<Assertion> advices = null;
059
060 private String[] adviceIDs = null;
061
062 private ArrayList<Statement> statements = null;
063
064 private int majorVersion = 0;
065
066 private int minorVersion = 0;
067
068 private String assertionID = null;
069
070 private String issuer = null;
071
072 private Date issueInstant = null;
073
074 /**
075 * @param conditions
076 * @param advices
077 * @param adviceIDs
078 * @param statements
079 * @param majorVersion
080 * @param minorVersion
081 * @param assertionID
082 * @param issuer
083 * @param issueInstant
084 */
085 public Assertion( Conditions conditions, ArrayList<Assertion> advices, String[] adviceIDs,
086 ArrayList<Statement> statements, int majorVersion, int minorVersion,
087 String assertionID, String issuer, Date issueInstant ) {
088 this.conditions = conditions;
089 this.advices = advices;
090 this.adviceIDs = adviceIDs;
091 this.statements = statements;
092 this.majorVersion = majorVersion;
093 this.minorVersion = minorVersion;
094 this.assertionID = assertionID;
095 this.issuer = issuer;
096 this.issueInstant = issueInstant;
097 }
098
099 /**
100 * @return Returns the adviceIDs.
101 */
102 public String[] getAdviceIDs() {
103 return adviceIDs;
104 }
105
106 /**
107 * @return Returns the advices.
108 */
109 public ArrayList<Assertion> getAdvices() {
110 return advices;
111 }
112
113 /**
114 * @return Returns the assertionID.
115 */
116 public String getAssertionID() {
117 return assertionID;
118 }
119
120 /**
121 * @return Returns the conditions.
122 */
123 public Conditions getConditions() {
124 return conditions;
125 }
126
127 /**
128 * @return Returns the issueInstant.
129 */
130 public Date getIssueInstant() {
131 return issueInstant;
132 }
133
134 /**
135 * @return Returns the issuer.
136 */
137 public String getIssuer() {
138 return issuer;
139 }
140
141 /**
142 * @return Returns the majorVersion.
143 */
144 public int getMajorVersion() {
145 return majorVersion;
146 }
147
148 /**
149 * @return Returns the minorVersion.
150 */
151 public int getMinorVersion() {
152 return minorVersion;
153 }
154
155 /**
156 * @return Returns the statements.
157 */
158 public ArrayList<Statement> getStatements() {
159 return statements;
160 }
161
162 }