Class AssertionImpl

All Implemented Interfaces:
XMLObject, SAMLObject, SignableSAMLObject, Assertion, Evidentiary, SignableXMLObject

public class AssertionImpl extends AbstractSignableSAMLObject implements Assertion
This class implements the SAML 1 Assertion statement.
  • Field Details

    • id

      private String id
      The AssertionID attrribute.
    • version

      private SAMLVersion version
      SAML version of this assertion.
    • issuer

      private String issuer
      Object version of the Issuer attribute.
    • issueInstant

      private Instant issueInstant
      Object version of the IssueInstant attribute.
    • conditions

      private Conditions conditions
      (Possibly null) Singleton object version of the Conditions element.
    • advice

      private Advice advice
      (Possibly null) Singleton object version of the Advice element.
    • statements

      private final IndexedXMLObjectChildrenList<Statement> statements
      Object representation of all the Statement elements.
  • Constructor Details

    • AssertionImpl

      protected AssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getMajorVersion

      public int getMajorVersion()
      Get the MajorVersion attribute.
      Specified by:
      getMajorVersion in interface Assertion
      Returns:
      the stored MajorVersion
    • getMinorVersion

      public int getMinorVersion()
      Get the MinorVersion attribute.
      Specified by:
      getMinorVersion in interface Assertion
      Returns:
      the stored MinorVersion
    • setVersion

      public void setVersion(SAMLVersion newVersion)
      Set the SAML version of this assertion.
      Specified by:
      setVersion in interface Assertion
      Parameters:
      newVersion - the SAML version of this assertion
    • getID

      public String getID()
      Set the ID.
      Specified by:
      getID in interface Assertion
      Returns:
      the ID
    • setID

      public void setID(String newID)
      Get the ID.
      Specified by:
      setID in interface Assertion
      Parameters:
      newID - what to set
    • getIssuer

      public String getIssuer()
      Get the Issuer (which is an attribute) .
      Specified by:
      getIssuer in interface Assertion
      Returns:
      the Issuer
    • setIssuer

      public void setIssuer(String iss)
      Set the Issuer (attribute).
      Specified by:
      setIssuer in interface Assertion
      Parameters:
      iss - the value to set
    • getIssueInstant

      public Instant getIssueInstant()
      Get the IssueInstant (attribute).
      Specified by:
      getIssueInstant in interface Assertion
      Returns:
      the Issue Instant (as a Date)
    • setIssueInstant

      public void setIssueInstant(Instant instant)
      Set the IssueInstance (attribute).
      Specified by:
      setIssueInstant in interface Assertion
      Parameters:
      instant - the issue instant value to set
    • getConditions

      public Conditions getConditions()
      Return the (singleton) Object, representing the Conditions sub element.
      Specified by:
      getConditions in interface Assertion
      Returns:
      the Conditions object.
    • setConditions

      public void setConditions(Conditions c)
      Set the Object representing the Conditions Sub element.
      Specified by:
      setConditions in interface Assertion
      Parameters:
      c - the condition to List
    • getAdvice

      public Advice getAdvice()
      advice is a (singleton) Object, representing the Advice sub element.
      Specified by:
      getAdvice in interface Assertion
      Returns:
      the advice object in this assertion
    • setAdvice

      public void setAdvice(Advice adv)
      Set the Object representing the Advice sub element.
      Specified by:
      setAdvice in interface Assertion
      Parameters:
      adv - the object to set
    • getStatements

      public List<Statement> getStatements()
      Return the List representing all the Statement sub elements.
      Specified by:
      getStatements in interface Assertion
      Returns:
      the List representing all the statements
    • getStatements

      public List<Statement> getStatements(QName typeOrName)
      Return the List representing all the Statement sub elements with a given schema type or element name.
      Specified by:
      getStatements in interface Assertion
      Parameters:
      typeOrName - the schema type or element name
      Returns:
      the List representing all the statements
    • getSubjectStatements

      public List<SubjectStatement> getSubjectStatements()
      Return the List representing all the SubjectStatement sub elements.
      Specified by:
      getSubjectStatements in interface Assertion
      Returns:
      all the SubjectStatements
    • getAuthenticationStatements

      public List<AuthenticationStatement> getAuthenticationStatements()
      Return the List representing all the AuthenticationStatement sub elements.
      Specified by:
      getAuthenticationStatements in interface Assertion
      Returns:
      all the AuthenticationStatements
    • getAuthorizationDecisionStatements

      public List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
      Return the List representing all the AuthorizationStatement sub elements.
      Specified by:
      getAuthorizationDecisionStatements in interface Assertion
      Returns:
      all the authorizationDecisionStatements.
    • getAttributeStatements

      public List<AttributeStatement> getAttributeStatements()
      Return all the AttributeStatement elements.
      Specified by:
      getAttributeStatements in interface Assertion
      Returns:
      all the attributeStatements
    • getSignatureReferenceID

      public String getSignatureReferenceID()
      Gets the value of the ID attribute for this SAML object which will be used as its signature reference.
      Specified by:
      getSignatureReferenceID in interface SignableSAMLObject
      Returns:
      the value of this SAMLObject ID attribute
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements