Class AssertionImpl

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

public class AssertionImpl extends AbstractSignableSAMLObject implements Assertion
A concrete implementation of Assertion.
  • Field Details

    • version

      private SAMLVersion version
      SAML Version of the assertion.
    • issueInstant

      private Instant issueInstant
      Issue Instant of the assertion.
    • id

      private String id
      ID of the assertion.
    • issuer

      private Issuer issuer
      Issuer of the assertion.
    • subject

      private Subject subject
      Subject of the assertion.
    • conditions

      private Conditions conditions
      Conditions of the assertion.
    • advice

      private Advice advice
      Advice of the assertion.
    • statements

      private final IndexedXMLObjectChildrenList<Statement> statements
      Statements of the assertion.
  • 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

    • getVersion

      public SAMLVersion getVersion()
      Gets the SAML Version of this assertion.
      Specified by:
      getVersion in interface Assertion
      Returns:
      the SAML Version of this assertion.
    • setVersion

      public void setVersion(SAMLVersion newVersion)
      Sets the SAML Version of this assertion.
      Specified by:
      setVersion in interface Assertion
      Parameters:
      newVersion - the SAML Version of this assertion
    • getIssueInstant

      public Instant getIssueInstant()
      Gets the issue instance of this assertion.
      Specified by:
      getIssueInstant in interface Assertion
      Returns:
      the issue instance of this assertion
    • setIssueInstant

      public void setIssueInstant(Instant newIssueInstance)
      Sets the issue instance of this assertion.
      Specified by:
      setIssueInstant in interface Assertion
      Parameters:
      newIssueInstance - the issue instance of this assertion
    • getID

      public String getID()
      Sets the ID of this assertion.
      Specified by:
      getID in interface Assertion
      Returns:
      the ID of this assertion
    • setID

      public void setID(String newID)
      Sets the ID of this assertion.
      Specified by:
      setID in interface Assertion
      Parameters:
      newID - the ID of this assertion
    • getIssuer

      public Issuer getIssuer()
      Gets the Issuer of this assertion.
      Specified by:
      getIssuer in interface Assertion
      Returns:
      the Issuer of this assertion
    • setIssuer

      public void setIssuer(Issuer newIssuer)
      Sets the Issuer of this assertion.
      Specified by:
      setIssuer in interface Assertion
      Parameters:
      newIssuer - the Issuer of this assertion
    • getSubject

      public Subject getSubject()
      Gets the Subject of this assertion.
      Specified by:
      getSubject in interface Assertion
      Returns:
      the Subject of this assertion
    • setSubject

      public void setSubject(Subject newSubject)
      Sets the Subject of this assertion.
      Specified by:
      setSubject in interface Assertion
      Parameters:
      newSubject - the Subject of this assertion
    • getConditions

      public Conditions getConditions()
      Gets the Conditions placed on this assertion.
      Specified by:
      getConditions in interface Assertion
      Returns:
      the Conditions placed on this assertion
    • setConditions

      public void setConditions(Conditions newConditions)
      Sets the Conditions placed on this assertion.
      Specified by:
      setConditions in interface Assertion
      Parameters:
      newConditions - the Conditions placed on this assertion
    • getAdvice

      public Advice getAdvice()
      Gets the Advice for this assertion.
      Specified by:
      getAdvice in interface Assertion
      Returns:
      the Advice for this assertion
    • setAdvice

      public void setAdvice(Advice newAdvice)
      Sets the Advice for this assertion.
      Specified by:
      setAdvice in interface Assertion
      Parameters:
      newAdvice - the Advice for this assertion
    • getStatements

      public List<Statement> getStatements()
      Gets the list of statements attached to this assertion.
      Specified by:
      getStatements in interface Assertion
      Returns:
      the list of statements attached to this assertion
    • getStatements

      public List<Statement> getStatements(QName typeOrName)
      Gets the list of statements attached to this assertion that match a particular QName.
      Specified by:
      getStatements in interface Assertion
      Parameters:
      typeOrName - the QName of the statements to return
      Returns:
      the list of statements attached to this assertion
    • getAuthnStatements

      public List<AuthnStatement> getAuthnStatements()
      Gets the list of AuthnStatements attached to this assertion.
      Specified by:
      getAuthnStatements in interface Assertion
      Returns:
      the list of AuthnStatements attached to this assertion
    • getAuthzDecisionStatements

      public List<AuthzDecisionStatement> getAuthzDecisionStatements()
      Gets the list of AuthzDecisionStatements attached to this assertion.
      Specified by:
      getAuthzDecisionStatements in interface Assertion
      Returns:
      the list of AuthzDecisionStatements attached to this assertion
    • getAttributeStatements

      public List<AttributeStatement> getAttributeStatements()
      Gets the list of AttributeStatement attached to this assertion.
      Specified by:
      getAttributeStatements in interface Assertion
      Returns:
      the list of AttributeStatement attached to this assertion
    • 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