Class SubjectConfirmationDataImpl

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.saml.saml2.core.impl.SubjectConfirmationDataImpl
All Implemented Interfaces:
AttributeExtensibleXMLObject, ElementExtensibleXMLObject, XMLObject, SAMLObject, SubjectConfirmationData
Direct Known Subclasses:
KeyInfoConfirmationDataTypeImpl

public class SubjectConfirmationDataImpl extends AbstractXMLObject implements SubjectConfirmationData
Concrete implementation of SubjectConfirmationData.
  • Field Details

    • notBefore

      private Instant notBefore
      NotBefore of the Confirmation Data.
    • notOnOrAfter

      private Instant notOnOrAfter
      NotOnOrAfter of the Confirmation Data.
    • recipient

      private String recipient
      Recipient of the Confirmation Data.
    • inResponseTo

      private String inResponseTo
      InResponseTo of the Confirmation Data.
    • address

      private String address
      Address of the Confirmation Data.
    • unknownAttributes

      private final AttributeMap unknownAttributes
      "anyAttribute" attributes.
    • unknownChildren

      private final IndexedXMLObjectChildrenList<XMLObject> unknownChildren
      "any" children.
  • Constructor Details

    • SubjectConfirmationDataImpl

      protected SubjectConfirmationDataImpl(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

    • getNotBefore

      public Instant getNotBefore()
      Gets the time before which this subject is not valid.
      Specified by:
      getNotBefore in interface SubjectConfirmationData
      Returns:
      the time before which this subject is not valid
    • setNotBefore

      public void setNotBefore(Instant newNotBefore)
      Sets the time before which this subject is not valid.
      Specified by:
      setNotBefore in interface SubjectConfirmationData
      Parameters:
      newNotBefore - the time before which this subject is not valid
    • getNotOnOrAfter

      public Instant getNotOnOrAfter()
      Gets the time at, or after, which this subject is not valid.
      Specified by:
      getNotOnOrAfter in interface SubjectConfirmationData
      Returns:
      the time at, or after, which this subject is not valid
    • setNotOnOrAfter

      public void setNotOnOrAfter(Instant newNotOnOrAfter)
      Sets the time at, or after, which this subject is not valid.
      Specified by:
      setNotOnOrAfter in interface SubjectConfirmationData
      Parameters:
      newNotOnOrAfter - the time at, or after, which this subject is not valid
    • getRecipient

      public String getRecipient()
      Gets the recipient of this subject.
      Specified by:
      getRecipient in interface SubjectConfirmationData
      Returns:
      the recipient of this subject
    • setRecipient

      public void setRecipient(String newRecipient)
      Sets the recipient of this subject.
      Specified by:
      setRecipient in interface SubjectConfirmationData
      Parameters:
      newRecipient - the recipient of this subject
    • getInResponseTo

      public String getInResponseTo()
      Gets the message ID this is in response to.
      Specified by:
      getInResponseTo in interface SubjectConfirmationData
      Returns:
      the message ID this is in response to
    • setInResponseTo

      public void setInResponseTo(String newInResponseTo)
      Sets the message ID this is in response to.
      Specified by:
      setInResponseTo in interface SubjectConfirmationData
      Parameters:
      newInResponseTo - the message ID this is in response to
    • getAddress

      public String getAddress()
      Gets the IP address to which this information may be pressented.
      Specified by:
      getAddress in interface SubjectConfirmationData
      Returns:
      the IP address to which this information may be pressented
    • setAddress

      public void setAddress(String newAddress)
      Sets the IP address to which this information may be pressented.
      Specified by:
      setAddress in interface SubjectConfirmationData
      Parameters:
      newAddress - the IP address to which this information may be pressented
    • getUnknownAttributes

      public AttributeMap getUnknownAttributes()
      Gets a mutable map of the attributes. The map key is the namespace qualified name of the attribute, the map value is the value of the attribute.
      Specified by:
      getUnknownAttributes in interface AttributeExtensibleXMLObject
      Returns:
      a map of the attributes
    • getUnknownXMLObjects

      public List<XMLObject> getUnknownXMLObjects()
      Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.
      Specified by:
      getUnknownXMLObjects in interface ElementExtensibleXMLObject
      Returns:
      list of XMLObjects added to this XMLObject as part of the "any" content model
    • getUnknownXMLObjects

      public List<XMLObject> getUnknownXMLObjects(QName typeOrName)
      Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.
      Specified by:
      getUnknownXMLObjects in interface ElementExtensibleXMLObject
      Parameters:
      typeOrName - the QName of the statements to return
      Returns:
      list of XMLObjects added to this XMLObject as part of the "any" content model TODO: think this should be typed List<? extends XMLObject>
    • 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