public class Assertion extends SAMLMessage
| Modifier | Constructor and Description |
|---|---|
|
Assertion(org.w3c.dom.Document owner)
Creates a new
Assertion instance. |
protected |
Assertion(org.w3c.dom.Document owner,
java.lang.String uri,
java.lang.String localName)
Creates a new
Assertion instance. |
|
Assertion(org.w3c.dom.Element element)
Creates a new
Assertion instance from the given Element node. |
|
Assertion(org.w3c.dom.Element element,
java.lang.String systemId)
Creates a new
Assertion instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatement(Statement statement)
Adds a Statement element to this
Assertion. |
Advice |
getAdvice()
Returns additional information for processing this
Assertion |
java.lang.String |
getAssertionID()
Returns the identifier attribute for this
Assertion. |
java.util.List |
getAttributeStatements()
Returns a
List containing the AttributeStatement
elements present in this Assertion. |
java.util.List |
getAuthenticationStatements()
Returns a
List containing the AuthenticationStatement
elements present in this Assertion. |
java.util.List |
getAuthorizationDecisionStatements()
Returns a
List containing the AuthorizationDecisionStatement
elements present in this Assertion. |
Conditions |
getConditions()
Returns the conditions of this
Assertion |
protected java.lang.String |
getID()
Returns the ID attribute if any of this SAML message to be used for the signature operations.
|
java.util.Date |
getIssueInstant()
Returns the time instant of issue attribute.
|
java.lang.String |
getIssuer()
Returns the issuer's name attribute of this
Assertion. |
protected java.lang.String[] |
getLocalNamesPrecedeDSig()
Obtains the ordered set of the local names of all the
preceding sibling child elements of this Signature child
element in the the Schema for the XML element that the
implementing subclass targets for.
|
protected java.lang.String[] |
getNSURIsPrecedeDSig()
Obtains the ordered set of the the namespace URIs for all the
preceding sibling child elements of this Signature child element
in the the Schema for the XML element that the implementing subclass
targets for.
|
void |
setAdvice(Advice advice)
Sets the Advice element of this
Assertion. |
void |
setAssertionID(java.lang.String assertionID)
Sets the identifier attribute for this
Assertion object. |
void |
setConditions(Conditions conditions)
Sets the conditions that must be taken into account when validating the assertion.
|
void |
setIssueInstant(java.util.Date issueInstant)
Sets the time instant of issue attribute as a UTC time.
|
void |
setIssuer(java.lang.String issuer)
Sets the issuer attribute of this
Assertion. |
addSignature, addSignature, clearSignature, getInstance, getMajorVersion, getMinorVersion, getSignature, isSigned, setVersion, sign, sign, sign, sign, verify, verifyaddNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXMLpublic Assertion(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
Assertion instance from the given Element node.element - An Assertion element.org.w3c.dom.DOMExceptionpublic Assertion(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
Assertion instance from the given Element node.element - An Assertion element.systemId - The URI string system ID for the Action.org.w3c.dom.DOMExceptionpublic Assertion(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
Assertion instance.owner - The owner document of the new Assertion.org.w3c.dom.DOMExceptionprotected Assertion(org.w3c.dom.Document owner,
java.lang.String uri,
java.lang.String localName)
throws org.w3c.dom.DOMException
Assertion instance. This constructor
is for use in subclass for extension of the Assertion element.owner - The owner document of the new Assertion.uri - The namespace URI in which the new Assertion is to be created.localName - The localName of the element represented by the class that extends
this class.org.w3c.dom.DOMExceptionpublic void setAssertionID(java.lang.String assertionID)
Assertion object.assertionID - A unique ID.public java.lang.String getAssertionID()
Assertion.null
if none has been set.public void setIssuer(java.lang.String issuer)
Assertion.issuer - The issuer's name.public java.lang.String getIssuer()
Assertion.null
if none has been set.public void setIssueInstant(java.util.Date issueInstant)
issueInstant - The Date object representing the issue time.public java.util.Date getIssueInstant()
Date object representing the issue time
or null if none has been set.public void setConditions(Conditions conditions)
conditions - A Conditions object containing a collection of conditions.public Conditions getConditions()
AssertionConditions object containing a set of
Condition objects or null
if none has been set.public void setAdvice(Advice advice)
Assertion.advice - An Advice object that contains additional information for
this Assertion.public Advice getAdvice()
AssertionAdvice object or null
if none has been set.public void addStatement(Statement statement)
Assertion.statement - The Statement objec to add.public java.util.List getAuthenticationStatements()
List containing the AuthenticationStatement
elements present in this Assertion.List object of AuthenticationStatement
objects or an empty List.public java.util.List getAuthorizationDecisionStatements()
List containing the AuthorizationDecisionStatement
elements present in this Assertion.List object of AuthorizationDecisionStatement
objects or an empty List.public java.util.List getAttributeStatements()
List containing the AttributeStatement
elements present in this Assertion.List object of AttributeStatement
objects or an empty List.protected java.lang.String[] getNSURIsPrecedeDSig()
SAMLMessagegetNSURIsPrecedeDSig in class SAMLMessageprotected java.lang.String[] getLocalNamesPrecedeDSig()
SAMLMessagegetLocalNamesPrecedeDSig in class SAMLMessageprotected java.lang.String getID()
SAMLMessagegetID in class SAMLMessage