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 ofSubjectConfirmationData.
-
-
Field Summary
Fields Modifier and Type Field Description private StringaddressAddress of the Confirmation Data.private StringinResponseToInResponseTo of the Confirmation Data.private InstantnotBeforeNotBefore of the Confirmation Data.private InstantnotOnOrAfterNotOnOrAfter of the Confirmation Data.private StringrecipientRecipient of the Confirmation Data.private AttributeMapunknownAttributes"anyAttribute" attributes.private IndexedXMLObjectChildrenList<XMLObject>unknownChildren"any" children.-
Fields inherited from interface org.opensaml.saml.saml2.core.SubjectConfirmationData
ADDRESS_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, IN_RESPONSE_TO_ATTRIB_NAME, NOT_BEFORE_ATTRIB_NAME, NOT_BEFORE_ATTRIB_QNAME, NOT_ON_OR_AFTER_ATTRIB_NAME, NOT_ON_OR_AFTER_ATTRIB_QNAME, RECIPIENT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubjectConfirmationDataImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()Gets the IP address to which this information may be pressented.StringgetInResponseTo()Gets the message ID this is in response to.InstantgetNotBefore()Gets the time before which this subject is not valid.InstantgetNotOnOrAfter()Gets the time at, or after, which this subject is not valid.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.StringgetRecipient()Gets the recipient of this subject.AttributeMapgetUnknownAttributes()Gets a mutable map of the attributes.List<XMLObject>getUnknownXMLObjects()Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.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.voidsetAddress(String newAddress)Sets the IP address to which this information may be pressented.voidsetInResponseTo(String newInResponseTo)Sets the message ID this is in response to.voidsetNotBefore(Instant newNotBefore)Sets the time before which this subject is not valid.voidsetNotOnOrAfter(Instant newNotOnOrAfter)Sets the time at, or after, which this subject is not valid.voidsetRecipient(String newRecipient)Sets the recipient of this subject.-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
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 Detail
-
SubjectConfirmationDataImpl
protected SubjectConfirmationDataImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getNotBefore
public Instant getNotBefore()
Gets the time before which this subject is not valid.- Specified by:
getNotBeforein interfaceSubjectConfirmationData- 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:
setNotBeforein interfaceSubjectConfirmationData- 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:
getNotOnOrAfterin interfaceSubjectConfirmationData- 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:
setNotOnOrAfterin interfaceSubjectConfirmationData- 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:
getRecipientin interfaceSubjectConfirmationData- Returns:
- the recipient of this subject
-
setRecipient
public void setRecipient(String newRecipient)
Sets the recipient of this subject.- Specified by:
setRecipientin interfaceSubjectConfirmationData- Parameters:
newRecipient- the recipient of this subject
-
getInResponseTo
public String getInResponseTo()
Gets the message ID this is in response to.- Specified by:
getInResponseToin interfaceSubjectConfirmationData- 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:
setInResponseToin interfaceSubjectConfirmationData- 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:
getAddressin interfaceSubjectConfirmationData- 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:
setAddressin interfaceSubjectConfirmationData- 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:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject- 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:
getUnknownXMLObjectsin interfaceElementExtensibleXMLObject- 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:
getUnknownXMLObjectsin interfaceElementExtensibleXMLObject- 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:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-
-