Class AssertionImpl

  • All Implemented Interfaces:
    org.opensaml.core.xml.XMLObject, org.opensaml.saml.common.SAMLObject, org.opensaml.saml.common.SignableSAMLObject, org.opensaml.saml.saml1.core.Assertion, org.opensaml.saml.saml1.core.Evidentiary, org.opensaml.xmlsec.signature.SignableXMLObject

    public class AssertionImpl
    extends org.opensaml.saml.common.AbstractSignableSAMLObject
    implements org.opensaml.saml.saml1.core.Assertion
    This class implements the SAML 1 Assertion statement.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.opensaml.saml.saml1.core.Advice advice
      (Possibly null) Singleton object version of the Advice element.
      private org.opensaml.saml.saml1.core.Conditions conditions
      (Possibly null) Singleton object version of the Conditions element.
      private String id
      The AssertionID attrribute.
      private Instant issueInstant
      Object version of the IssueInstant attribute.
      private String issuer
      Object version of the Issuer attribute.
      private org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.saml.saml1.core.Statement> statements
      Object representation of all the Statement elements.
      private org.opensaml.saml.common.SAMLVersion version
      SAML version of this assertion.
      • Fields inherited from interface org.opensaml.saml.saml1.core.Assertion

        ASSERTIONID_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_QNAME, ISSUER_ATTRIB_NAME, MAJORVERSION_ATTRIB_NAME, MINORVERSION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AssertionImpl​(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opensaml.saml.saml1.core.Advice getAdvice()
      List<org.opensaml.saml.saml1.core.AttributeStatement> getAttributeStatements()
      List<org.opensaml.saml.saml1.core.AuthenticationStatement> getAuthenticationStatements()
      List<org.opensaml.saml.saml1.core.AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
      org.opensaml.saml.saml1.core.Conditions getConditions()
      String getID()
      Instant getIssueInstant()
      String getIssuer()
      int getMajorVersion()
      int getMinorVersion()
      List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
      String getSignatureReferenceID()
      List<org.opensaml.saml.saml1.core.Statement> getStatements()
      List<org.opensaml.saml.saml1.core.Statement> getStatements​(QName typeOrName)
      List<org.opensaml.saml.saml1.core.SubjectStatement> getSubjectStatements()
      void setAdvice​(org.opensaml.saml.saml1.core.Advice adv)
      void setConditions​(org.opensaml.saml.saml1.core.Conditions c)
      void setID​(String newID)
      void setIssueInstant​(Instant instant)
      void setIssuer​(String iss)
      void setVersion​(org.opensaml.saml.common.SAMLVersion newVersion)
      • Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject

        equals, hashCode, setSignature
      • Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject

        getSignature, isSigned
      • Methods inherited from class org.opensaml.core.xml.AbstractXMLObject

        detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
      • Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject

        getSignature, isSigned, setSignature
      • Methods inherited from interface org.opensaml.core.xml.XMLObject

        detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
    • Field Detail

      • id

        private String id
        The AssertionID attrribute.
      • version

        private org.opensaml.saml.common.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 org.opensaml.saml.saml1.core.Conditions conditions
        (Possibly null) Singleton object version of the Conditions element.
      • advice

        private org.opensaml.saml.saml1.core.Advice advice
        (Possibly null) Singleton object version of the Advice element.
      • statements

        private final org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.saml.saml1.core.Statement> statements
        Object representation of all the Statement elements.
    • Constructor Detail

      • 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 Detail

      • getMajorVersion

        public int getMajorVersion()
        Specified by:
        getMajorVersion in interface org.opensaml.saml.saml1.core.Assertion
      • getMinorVersion

        public int getMinorVersion()
        Specified by:
        getMinorVersion in interface org.opensaml.saml.saml1.core.Assertion
      • setVersion

        public void setVersion​(org.opensaml.saml.common.SAMLVersion newVersion)
        Specified by:
        setVersion in interface org.opensaml.saml.saml1.core.Assertion
      • getID

        public String getID()
        Specified by:
        getID in interface org.opensaml.saml.saml1.core.Assertion
      • setID

        public void setID​(String newID)
        Specified by:
        setID in interface org.opensaml.saml.saml1.core.Assertion
      • getIssuer

        public String getIssuer()
        Specified by:
        getIssuer in interface org.opensaml.saml.saml1.core.Assertion
      • setIssuer

        public void setIssuer​(String iss)
        Specified by:
        setIssuer in interface org.opensaml.saml.saml1.core.Assertion
      • getIssueInstant

        public Instant getIssueInstant()
        Specified by:
        getIssueInstant in interface org.opensaml.saml.saml1.core.Assertion
      • setIssueInstant

        public void setIssueInstant​(Instant instant)
        Specified by:
        setIssueInstant in interface org.opensaml.saml.saml1.core.Assertion
      • getConditions

        public org.opensaml.saml.saml1.core.Conditions getConditions()
        Specified by:
        getConditions in interface org.opensaml.saml.saml1.core.Assertion
      • setConditions

        public void setConditions​(org.opensaml.saml.saml1.core.Conditions c)
        Specified by:
        setConditions in interface org.opensaml.saml.saml1.core.Assertion
      • getAdvice

        public org.opensaml.saml.saml1.core.Advice getAdvice()
        Specified by:
        getAdvice in interface org.opensaml.saml.saml1.core.Assertion
      • setAdvice

        public void setAdvice​(org.opensaml.saml.saml1.core.Advice adv)
        Specified by:
        setAdvice in interface org.opensaml.saml.saml1.core.Assertion
      • getStatements

        public List<org.opensaml.saml.saml1.core.Statement> getStatements()
        Specified by:
        getStatements in interface org.opensaml.saml.saml1.core.Assertion
      • getStatements

        public List<org.opensaml.saml.saml1.core.Statement> getStatements​(QName typeOrName)
        Specified by:
        getStatements in interface org.opensaml.saml.saml1.core.Assertion
      • getSubjectStatements

        public List<org.opensaml.saml.saml1.core.SubjectStatement> getSubjectStatements()
        Specified by:
        getSubjectStatements in interface org.opensaml.saml.saml1.core.Assertion
      • getAuthenticationStatements

        public List<org.opensaml.saml.saml1.core.AuthenticationStatement> getAuthenticationStatements()
        Specified by:
        getAuthenticationStatements in interface org.opensaml.saml.saml1.core.Assertion
      • getAuthorizationDecisionStatements

        public List<org.opensaml.saml.saml1.core.AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
        Specified by:
        getAuthorizationDecisionStatements in interface org.opensaml.saml.saml1.core.Assertion
      • getAttributeStatements

        public List<org.opensaml.saml.saml1.core.AttributeStatement> getAttributeStatements()
        Specified by:
        getAttributeStatements in interface org.opensaml.saml.saml1.core.Assertion
      • getSignatureReferenceID

        public String getSignatureReferenceID()
        Specified by:
        getSignatureReferenceID in interface org.opensaml.saml.common.SignableSAMLObject
      • getOrderedChildren

        public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
        Specified by:
        getOrderedChildren in interface org.opensaml.core.xml.XMLObject