Class AssertionImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.AbstractSignableXMLObject
org.opensaml.saml.common.AbstractSignableSAMLObject
org.opensaml.saml.saml2.core.impl.AssertionImpl
- All Implemented Interfaces:
XMLObject
,SAMLObject
,SignableSAMLObject
,Assertion
,Evidentiary
,SignableXMLObject
A concrete implementation of
Assertion
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Advice
Advice of the assertion.private Conditions
Conditions of the assertion.private String
ID of the assertion.private Instant
Issue Instant of the assertion.private Issuer
Issuer of the assertion.private final IndexedXMLObjectChildrenList<Statement>
Statements of the assertion.private Subject
Subject of the assertion.private SAMLVersion
SAML Version of the assertion.Fields inherited from interface org.opensaml.saml.saml2.core.Assertion
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUE_INSTANT_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_QNAME, TYPE_LOCAL_NAME, TYPE_NAME, VERSION_ATTRIB_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AssertionImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the Advice for this assertion.Gets the list of AttributeStatement attached to this assertion.Gets the list of AuthnStatements attached to this assertion.Gets the list of AuthzDecisionStatements attached to this assertion.Gets the Conditions placed on this assertion.getID()
Sets the ID of this assertion.Gets the issue instance of this assertion.Gets the Issuer of this assertion.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets the value of the ID attribute for this SAML object which will be used as its signature reference.Gets the list of statements attached to this assertion.getStatements
(QName typeOrName) Gets the list of statements attached to this assertion that match a particular QName.Gets the Subject of this assertion.Gets the SAML Version of this assertion.void
Sets the Advice for this assertion.void
setConditions
(Conditions newConditions) Sets the Conditions placed on this assertion.void
Sets the ID of this assertion.void
setIssueInstant
(Instant newIssueInstance) Sets the issue instance of this assertion.void
Sets the Issuer of this assertion.void
setSubject
(Subject newSubject) Sets the Subject of this assertion.void
setVersion
(SAMLVersion newVersion) Sets the SAML Version of this assertion.Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignature
Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignature
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 Details
-
version
SAML Version of the assertion. -
issueInstant
Issue Instant of the assertion. -
id
ID of the assertion. -
issuer
Issuer of the assertion. -
subject
Subject of the assertion. -
conditions
Conditions of the assertion. -
advice
Advice of the assertion. -
statements
Statements of the assertion.
-
-
Constructor Details
-
AssertionImpl
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 Details
-
getVersion
Gets the SAML Version of this assertion.- Specified by:
getVersion
in interfaceAssertion
- Returns:
- the SAML Version of this assertion.
-
setVersion
Sets the SAML Version of this assertion.- Specified by:
setVersion
in interfaceAssertion
- Parameters:
newVersion
- the SAML Version of this assertion
-
getIssueInstant
Gets the issue instance of this assertion.- Specified by:
getIssueInstant
in interfaceAssertion
- Returns:
- the issue instance of this assertion
-
setIssueInstant
Sets the issue instance of this assertion.- Specified by:
setIssueInstant
in interfaceAssertion
- Parameters:
newIssueInstance
- the issue instance of this assertion
-
getID
Sets the ID of this assertion. -
setID
Sets the ID of this assertion. -
getIssuer
Gets the Issuer of this assertion. -
setIssuer
Sets the Issuer of this assertion. -
getSubject
Gets the Subject of this assertion.- Specified by:
getSubject
in interfaceAssertion
- Returns:
- the Subject of this assertion
-
setSubject
Sets the Subject of this assertion.- Specified by:
setSubject
in interfaceAssertion
- Parameters:
newSubject
- the Subject of this assertion
-
getConditions
Gets the Conditions placed on this assertion.- Specified by:
getConditions
in interfaceAssertion
- Returns:
- the Conditions placed on this assertion
-
setConditions
Sets the Conditions placed on this assertion.- Specified by:
setConditions
in interfaceAssertion
- Parameters:
newConditions
- the Conditions placed on this assertion
-
getAdvice
Gets the Advice for this assertion. -
setAdvice
Sets the Advice for this assertion. -
getStatements
Gets the list of statements attached to this assertion.- Specified by:
getStatements
in interfaceAssertion
- Returns:
- the list of statements attached to this assertion
-
getStatements
Gets the list of statements attached to this assertion that match a particular QName.- Specified by:
getStatements
in interfaceAssertion
- Parameters:
typeOrName
- the QName of the statements to return- Returns:
- the list of statements attached to this assertion
-
getAuthnStatements
Gets the list of AuthnStatements attached to this assertion.- Specified by:
getAuthnStatements
in interfaceAssertion
- Returns:
- the list of AuthnStatements attached to this assertion
-
getAuthzDecisionStatements
Gets the list of AuthzDecisionStatements attached to this assertion.- Specified by:
getAuthzDecisionStatements
in interfaceAssertion
- Returns:
- the list of AuthzDecisionStatements attached to this assertion
-
getAttributeStatements
Gets the list of AttributeStatement attached to this assertion.- Specified by:
getAttributeStatements
in interfaceAssertion
- Returns:
- the list of AttributeStatement attached to this assertion
-
getSignatureReferenceID
Gets the value of the ID attribute for this SAML object which will be used as its signature reference.- Specified by:
getSignatureReferenceID
in interfaceSignableSAMLObject
- Returns:
- the value of this SAMLObject ID attribute
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-