Class SubjectConfirmationDataImpl

  • All Implemented Interfaces:
    SubjectConfirmationData
    Direct Known Subclasses:
    KeyInfoConfirmationDataImpl

    public class SubjectConfirmationDataImpl
    extends Object
    implements SubjectConfirmationData
    The SubjectConfirmationData specifies additional data that allows the subject to be confirmed or constrains the circumstances under which the act of subject confirmation can take place. Subejct confirmation takes place when a relying party seeks to verify the relationship between an entity presenting the assertion and the subject of the assertion's claims.
    • Method Detail

      • parseContent

        protected void parseContent​(Element element)
                             throws SAML2Exception
        Parse and sets content values
        Parameters:
        element - Element for this class object
        Throws:
        SAML2Exception
      • parseAttributes

        protected void parseAttributes​(NamedNodeMap attrs)
                                throws SAML2Exception
        Sets all the attribute values
        Parameters:
        attrs - Map table has attribute name and value pairs
        Throws:
        SAML2Exception
      • getInResponseTo

        public String getInResponseTo()
        Returns the ID of a SAML protocol message in response to which an attesting entity can present the assertion
        Specified by:
        getInResponseTo in interface SubjectConfirmationData
        Returns:
        the ID of a SAML protocol message in response to which an attesting entity can present the assertion
        See Also:
        setInResponseTo(String)
      • setInResponseTo

        public void setInResponseTo​(String value)
                             throws SAML2Exception
        Sets the ID of a SAML protocol message in response to which an attesting entity can present the assertion
        Specified by:
        setInResponseTo in interface SubjectConfirmationData
        Parameters:
        value - the ID of a SAML protocol message in response to which an attesting entity can present the assertion
        Throws:
        SAML2Exception - if the object is immutable
        See Also:
        getInResponseTo()
      • getContent

        public List getContent()
        Returns a list of arbitrary XML elements to be added to this SubejctConfirmationData object.
        Specified by:
        getContent in interface SubjectConfirmationData
        Returns:
        a list of arbitrary XML elements to be added to this SubejctConfirmationData object.
        See Also:
        setContent(List)
      • setContent

        public void setContent​(List value)
                        throws SAML2Exception
        Sets a list of arbitrary XML elements to be added to this SubejctConfirmationData object.
        Specified by:
        setContent in interface SubjectConfirmationData
        Parameters:
        value - a list of arbitrary XML elements to be added to this SubejctConfirmationData object.
        Throws:
        SAML2Exception - if the object is immutable
        See Also:
        getContent()
      • getRecipient

        public String getRecipient()
        Returns the URI specifying the entity or location to which an attesting entity can present the assertion
        Specified by:
        getRecipient in interface SubjectConfirmationData
        Returns:
        the URI specifying the entity or location to which an attesting entity can present the assertion
        See Also:
        setRecipient(String)
      • setRecipient

        public void setRecipient​(String value)
                          throws SAML2Exception
        Sets the URI specifying the entity or location to which an attesting entity can present the assertion
        Specified by:
        setRecipient in interface SubjectConfirmationData
        Parameters:
        value - the URI specifying the entity or location to which an attesting entity can present the assertion
        Throws:
        SAML2Exception - if the object is immutable
        See Also:
        getRecipient()
      • getAddress

        public String getAddress()
        Returns the network address/location from which an attesting entity can present the assertion
        Specified by:
        getAddress in interface SubjectConfirmationData
        Returns:
        the network address/location from which an attesting entity can present the assertion
        See Also:
        setAddress(String)
      • setAddress

        public void setAddress​(String value)
                        throws SAML2Exception
        Sets the network address/location from which an attesting entity can present the assertion
        Specified by:
        setAddress in interface SubjectConfirmationData
        Parameters:
        value - the network address/location from which an attesting entity can present the assertion
        Throws:
        SAML2Exception - if the object is immutable
        See Also:
        getAddress()
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation of the element
        Specified by:
        toXMLString in interface SubjectConfirmationData
        Parameters:
        includeNSPrefix - Determines whether the namespace qualifier is prepended to the Element when converted
        declareNS - Determines whether the namespace is declared within the Element.
        Returns:
        A String representation
        Throws:
        SAML2Exception - if something is wrong during conversion
      • getElementValue

        protected String getElementValue​(boolean includeNSPrefix,
                                         boolean declareNS)
                                  throws SAML2Exception
        Returns a String representation of the element value
        Parameters:
        includeNSPrefix - Determines whether the namespace qualifier is prepended to the Element when converted
        declareNS - Determines whether or not the namespace is declared within the Element.
        Returns:
        A String representation
        Throws:
        SAML2Exception - if something is wrong during conversion
      • isMutable

        public boolean isMutable()
        Returns true if the object is mutable
        Specified by:
        isMutable in interface SubjectConfirmationData
        Returns:
        true if the object is mutable