public class AssertionImpl extends AbstractSignableSAMLObject implements Assertion
Assertion statement.| Modifier and Type | Field and Description |
|---|---|
private Advice |
advice
(Possibly null) Singleton object version of the
Advice element. |
private Conditions |
conditions
(Possibly null) Singleton object version of the
Conditions element. |
private java.lang.String |
id
The
AssertionID attrribute. |
private org.joda.time.DateTime |
issueInstant
Object version of the
IssueInstant attribute. |
private java.lang.String |
issuer
Object version of the
Issuer attribute. |
private IndexedXMLObjectChildrenList<Statement> |
statements
Object representation of all the
Statement elements. |
private SAMLVersion |
version
SAML version of this assertion.
|
ASSERTIONID_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_NAME, ISSUER_ATTRIB_NAME, MAJORVERSION_ATTRIB_NAME, MINORVERSION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AssertionImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Advice |
getAdvice()
advice is a (singleton) Object, representing the
Advice sub element. |
java.util.List<AttributeStatement> |
getAttributeStatements()
Return all the
AttributeStatement elements. |
java.util.List<AuthenticationStatement> |
getAuthenticationStatements()
Return the List representing all the
AuthenticationStatement sub elements. |
java.util.List<AuthorizationDecisionStatement> |
getAuthorizationDecisionStatements()
Return the List representing all the
AuthorizationStatement sub elements. |
Conditions |
getConditions()
Return the (singleton) Object, representing the
Conditions sub element. |
java.lang.String |
getID()
Set the ID.
|
org.joda.time.DateTime |
getIssueInstant()
Get the IssueInstant (attribute).
|
java.lang.String |
getIssuer()
Get the Issuer (which is an attribute) .
|
int |
getMajorVersion()
Get the MajorVersion attribute.
|
int |
getMinorVersion()
Get the MinorVersion attribute.
|
java.util.List<XMLObject> |
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
|
java.lang.String |
getSignatureReferenceID()
Gets the value of the ID attribute for this SAML object which will be used as its signature reference.
|
java.util.List<Statement> |
getStatements()
Return the List representing all the
Statement sub elements. |
java.util.List<Statement> |
getStatements(javax.xml.namespace.QName typeOrName)
Return the List representing all the
Statement sub elements with a given schema type or element
name. |
java.util.List<SubjectStatement> |
getSubjectStatements()
Return the List representing all the
SubjectStatement sub elements. |
void |
setAdvice(Advice adv)
Set the Object representing the
Advice sub element. |
void |
setConditions(Conditions c)
Set the Object representing the
Conditions Sub element. |
void |
setID(java.lang.String newID)
Get the ID.
|
void |
setIssueInstant(org.joda.time.DateTime instant)
Set the IssueInstance (attribute).
|
void |
setIssuer(java.lang.String iss)
Set the Issuer (attribute).
|
void |
setVersion(SAMLVersion newVersion)
Set the SAML version of this assertion.
|
equals, hashCode, prepareForAssignment, setSignaturegetSignature, isSigneddetach, 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, setSchemaTypeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSignature, isSigned, setSignaturedetach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationprivate java.lang.String id
AssertionID attrribute.private SAMLVersion version
private java.lang.String issuer
Issuer attribute.private org.joda.time.DateTime issueInstant
IssueInstant attribute.private Conditions conditions
Conditions element.private Advice advice
Advice element.private final IndexedXMLObjectChildrenList<Statement> statements
Statement elements.protected AssertionImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
namespaceURI - the namespace the element is inelementLocalName - the local name of the XML element this Object representsnamespacePrefix - the prefix for the given namespacepublic int getMajorVersion()
getMajorVersion in interface Assertionpublic int getMinorVersion()
getMinorVersion in interface Assertionpublic void setVersion(SAMLVersion newVersion)
setVersion in interface AssertionnewVersion - the SAML version of this assertionpublic java.lang.String getID()
public void setID(java.lang.String newID)
public java.lang.String getIssuer()
public void setIssuer(java.lang.String iss)
public org.joda.time.DateTime getIssueInstant()
getIssueInstant in interface Assertionpublic void setIssueInstant(org.joda.time.DateTime instant)
setIssueInstant in interface Assertioninstant - the issue instant value to setpublic Conditions getConditions()
Conditions sub element.getConditions in interface Assertionpublic void setConditions(Conditions c)
Conditions Sub element.setConditions in interface Assertionc - the condition to Listpublic Advice getAdvice()
Advice sub element.public void setAdvice(Advice adv)
Advice sub element.public java.util.List<Statement> getStatements()
Statement sub elements.getStatements in interface Assertionpublic java.util.List<Statement> getStatements(javax.xml.namespace.QName typeOrName)
Statement sub elements with a given schema type or element
name.getStatements in interface AssertiontypeOrName - the schema type or element namepublic java.util.List<SubjectStatement> getSubjectStatements()
SubjectStatement sub elements.getSubjectStatements in interface Assertionpublic java.util.List<AuthenticationStatement> getAuthenticationStatements()
AuthenticationStatement sub elements.getAuthenticationStatements in interface Assertionpublic java.util.List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
AuthorizationStatement sub elements.getAuthorizationDecisionStatements in interface Assertionpublic java.util.List<AttributeStatement> getAttributeStatements()
AttributeStatement elements.getAttributeStatements in interface Assertionpublic java.lang.String getSignatureReferenceID()
getSignatureReferenceID in interface SignableSAMLObjectpublic java.util.List<XMLObject> getOrderedChildren()
getOrderedChildren in interface XMLObject