package oasis.names.tc.saml._2_0.protocol;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import oasis.names.tc.saml._2_0.assertion.Assertion;
import oasis.names.tc.saml._2_0.assertion.EncryptedElementType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
   name = "ResponseType",
   propOrder = {"assertionsAndEncryptedAssertions"}
)
@XmlRootElement(
   name = "Response"
)
public class Response extends StatusResponseType implements Serializable {
   private static final long serialVersionUID = 1L;
   @XmlElements({@XmlElement(
   name = "Assertion",
   namespace = "urn:oasis:names:tc:SAML:2.0:assertion",
   type = Assertion.class
), @XmlElement(
   name = "EncryptedAssertion",
   namespace = "urn:oasis:names:tc:SAML:2.0:assertion",
   type = EncryptedElementType.class
)})
   protected List<Object> assertionsAndEncryptedAssertions;

   public List<Object> getAssertionsAndEncryptedAssertions() {
      if (this.assertionsAndEncryptedAssertions == null) {
         this.assertionsAndEncryptedAssertions = new ArrayList();
      }

      return this.assertionsAndEncryptedAssertions;
   }
}
