Class SubjectConfirmationDataImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.SubjectConfirmationDataImpl
-
- All Implemented Interfaces:
SubjectConfirmationData
- Direct Known Subclasses:
KeyInfoConfirmationDataImpl
public class SubjectConfirmationDataImpl extends Object implements SubjectConfirmationData
TheSubjectConfirmationDataspecifies 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.
-
-
Field Summary
Fields Modifier and Type Field Description StringelementNameprotected booleanmutable
-
Constructor Summary
Constructors Constructor Description SubjectConfirmationDataImpl()SubjectConfirmationDataImpl(String xmlString)SubjectConfirmationDataImpl(Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()Returns the network address/location from which an attesting entity can present the assertionListgetContent()Returns a list of arbitrary XML elements to be added to thisSubejctConfirmationDataobject.StringgetContentType()Returns the content type attributeprotected StringgetElementValue(boolean includeNSPrefix, boolean declareNS)Returns a String representation of the element valueStringgetInResponseTo()Returns the ID of a SAML protocol message in response to which an attesting entity can present the assertionDategetNotBefore()Returns the time instant before which the subject cannot be confirmedDategetNotOnOrAfter()Returns the time instant at which the subject can no longer be confirmedStringgetRecipient()Returns the URI specifying the entity or location to which an attesting entity can present the assertionbooleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the object immutableprotected voidparseAttributes(NamedNodeMap attrs)Sets all the attribute valuesprotected voidparseContent(Element element)Parse and sets content valuesvoidsetAddress(String value)Sets the network address/location from which an attesting entity can present the assertionvoidsetContent(List value)Sets a list of arbitrary XML elements to be added to thisSubejctConfirmationDataobject.voidsetContentType(String attribute)Sets the content type attribute.voidsetInResponseTo(String value)Sets the ID of a SAML protocol message in response to which an attesting entity can present the assertionvoidsetNotBefore(Date value)Sets the time instant before which the subject cannot be confirmedvoidsetNotOnOrAfter(Date value)Sets the time instant at which the subject can no longer be confirmedvoidsetRecipient(String value)Sets the URI specifying the entity or location to which an attesting entity can present the assertionStringtoXMLString()Returns a String representation of the elementStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation of the element
-
-
-
Field Detail
-
elementName
public final String elementName
- See Also:
- Constant Field Values
-
mutable
protected boolean mutable
-
-
Constructor Detail
-
SubjectConfirmationDataImpl
public SubjectConfirmationDataImpl()
-
SubjectConfirmationDataImpl
public SubjectConfirmationDataImpl(Element element) throws SAML2Exception
- Throws:
SAML2Exception
-
SubjectConfirmationDataImpl
public SubjectConfirmationDataImpl(String xmlString) throws SAML2Exception
- Throws:
SAML2Exception
-
-
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
-
getNotOnOrAfter
public Date getNotOnOrAfter()
Returns the time instant at which the subject can no longer be confirmed- Specified by:
getNotOnOrAfterin interfaceSubjectConfirmationData- Returns:
- the time instant at which the subject can no longer be confirmed
- See Also:
setNotOnOrAfter(Date)
-
setNotOnOrAfter
public void setNotOnOrAfter(Date value) throws SAML2Exception
Sets the time instant at which the subject can no longer be confirmed- Specified by:
setNotOnOrAfterin interfaceSubjectConfirmationData- Parameters:
value- the time instant at which the subject can no longer be confirmed- Throws:
SAML2Exception- if the object is immutable- See Also:
getNotOnOrAfter()
-
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:
getInResponseToin interfaceSubjectConfirmationData- 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:
setInResponseToin interfaceSubjectConfirmationData- 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 thisSubejctConfirmationDataobject.- Specified by:
getContentin interfaceSubjectConfirmationData- Returns:
- a list of arbitrary XML elements to be added to this
SubejctConfirmationDataobject. - See Also:
setContent(List)
-
setContent
public void setContent(List value) throws SAML2Exception
Sets a list of arbitrary XML elements to be added to thisSubejctConfirmationDataobject.- Specified by:
setContentin interfaceSubjectConfirmationData- Parameters:
value- a list of arbitrary XML elements to be added to thisSubejctConfirmationDataobject.- 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:
getRecipientin interfaceSubjectConfirmationData- 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:
setRecipientin interfaceSubjectConfirmationData- 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()
-
getNotBefore
public Date getNotBefore()
Returns the time instant before which the subject cannot be confirmed- Specified by:
getNotBeforein interfaceSubjectConfirmationData- Returns:
- the time instant before which the subject cannot be confirmed
- See Also:
setNotBefore(Date)
-
setNotBefore
public void setNotBefore(Date value) throws SAML2Exception
Sets the time instant before which the subject cannot be confirmed- Specified by:
setNotBeforein interfaceSubjectConfirmationData- Parameters:
value- the time instant before which the subject cannot be confirmed- Throws:
SAML2Exception- if the object is immutable- See Also:
getNotBefore()
-
getAddress
public String getAddress()
Returns the network address/location from which an attesting entity can present the assertion- Specified by:
getAddressin interfaceSubjectConfirmationData- 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:
setAddressin interfaceSubjectConfirmationData- 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()
-
getContentType
public String getContentType()
Returns the content type attribute- Specified by:
getContentTypein interfaceSubjectConfirmationData- Returns:
- the content type attribute
- See Also:
setContentType(String)
-
setContentType
public void setContentType(String attribute) throws SAML2Exception
Sets the content type attribute.- Specified by:
setContentTypein interfaceSubjectConfirmationData- Parameters:
attribute- attribute type value for the content that will be added- Throws:
SAML2Exception- if the object is immutable- See Also:
SubjectConfirmationData.getContentType()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation of the element- Specified by:
toXMLStringin interfaceSubjectConfirmationData- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation of the element- Specified by:
toXMLStringin interfaceSubjectConfirmationData- Parameters:
includeNSPrefix- Determines whether the namespace qualifier is prepended to the Element when converteddeclareNS- 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 converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceSubjectConfirmationData
-
isMutable
public boolean isMutable()
Returns true if the object is mutable- Specified by:
isMutablein interfaceSubjectConfirmationData- Returns:
- true if the object is mutable
-
-