Class AssertionImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.AbstractSignableXMLObject
org.opensaml.saml.common.AbstractSignableSAMLObject
org.opensaml.saml.saml1.core.impl.AssertionImpl
- All Implemented Interfaces:
XMLObject,SAMLObject,SignableSAMLObject,Assertion,Evidentiary,SignableXMLObject
This class implements the SAML 1
Assertion statement.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Advice(Possibly null) Singleton object version of theAdviceelement.private Conditions(Possibly null) Singleton object version of theConditionselement.private StringTheAssertionIDattrribute.private InstantObject version of theIssueInstantattribute.private StringObject version of theIssuerattribute.private final IndexedXMLObjectChildrenList<Statement>Object representation of all theStatementelements.private SAMLVersionSAML version of this assertion.Fields inherited from interface org.opensaml.saml.saml1.core.Assertion
ASSERTIONID_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_QNAME, ISSUER_ATTRIB_NAME, MAJORVERSION_ATTRIB_NAME, MINORVERSION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionadvice is a (singleton) Object, representing theAdvicesub element.Return all theAttributeStatementelements.Return the List representing all theAuthenticationStatementsub elements.Return the List representing all theAuthorizationStatementsub elements.Return the (singleton) Object, representing theConditionssub element.getID()Set the ID.Get the IssueInstant (attribute).Get the Issuer (which is an attribute) .Get the MajorVersion attribute.Get the MinorVersion attribute.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.Return the List representing all theStatementsub elements.getStatements(QName typeOrName) Return the List representing all theStatementsub elements with a given schema type or element name.Return the List representing all theSubjectStatementsub elements.Gets the SAML version for this message.voidSet the Object representing theAdvicesub element.voidSet the Object representing theConditionsSub element.voidGet the ID.voidsetIssueInstant(Instant instant) Set the IssueInstance (attribute).voidSet the Issuer (attribute).voidsetVersion(SAMLVersion newVersion) Set the SAML version of this assertion.Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignatureMethods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSignedMethods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, 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, setSchemaTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignatureMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, 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
-
id
TheAssertionIDattrribute. -
version
SAML version of this assertion. -
issuer
Object version of theIssuerattribute. -
issueInstant
Object version of theIssueInstantattribute. -
conditions
(Possibly null) Singleton object version of theConditionselement. -
advice
(Possibly null) Singleton object version of theAdviceelement. -
statements
Object representation of all theStatementelements.
-
-
Constructor Details
-
AssertionImpl
protected AssertionImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable 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 Details
-
getMajorVersion
Get the MajorVersion attribute.Deprecated, use
Assertion.getVersion().- Specified by:
getMajorVersionin interfaceAssertion- Returns:
- the stored MajorVersion
-
getMinorVersion
Get the MinorVersion attribute.Deprecated, use
Assertion.getVersion().- Specified by:
getMinorVersionin interfaceAssertion- Returns:
- the stored MinorVersion
-
getVersion
Gets the SAML version for this message.- Specified by:
getVersionin interfaceAssertion- Returns:
- SAML version for this message
-
setVersion
Set the SAML version of this assertion.- Specified by:
setVersionin interfaceAssertion- Parameters:
newVersion- the SAML version of this assertion
-
getID
Set the ID. -
setID
Get the ID. -
getIssuer
Get the Issuer (which is an attribute) . -
setIssuer
Set the Issuer (attribute). -
getIssueInstant
Get the IssueInstant (attribute).- Specified by:
getIssueInstantin interfaceAssertion- Returns:
- the Issue Instant (as a Date)
-
setIssueInstant
Set the IssueInstance (attribute).- Specified by:
setIssueInstantin interfaceAssertion- Parameters:
instant- the issue instant value to set
-
getConditions
Return the (singleton) Object, representing theConditionssub element.- Specified by:
getConditionsin interfaceAssertion- Returns:
- the Conditions object.
-
setConditions
Set the Object representing theConditionsSub element.- Specified by:
setConditionsin interfaceAssertion- Parameters:
c- the condition to List
-
getAdvice
advice is a (singleton) Object, representing theAdvicesub element. -
setAdvice
Set the Object representing theAdvicesub element. -
getStatements
Return the List representing all theStatementsub elements.- Specified by:
getStatementsin interfaceAssertion- Returns:
- the List representing all the statements
-
getStatements
Return the List representing all theStatementsub elements with a given schema type or element name.- Specified by:
getStatementsin interfaceAssertion- Parameters:
typeOrName- the schema type or element name- Returns:
- the List representing all the statements
-
getSubjectStatements
Return the List representing all theSubjectStatementsub elements.- Specified by:
getSubjectStatementsin interfaceAssertion- Returns:
- all the SubjectStatements
-
getAuthenticationStatements
Return the List representing all theAuthenticationStatementsub elements.- Specified by:
getAuthenticationStatementsin interfaceAssertion- Returns:
- all the AuthenticationStatements
-
getAttributeStatements
Return all theAttributeStatementelements.- Specified by:
getAttributeStatementsin interfaceAssertion- Returns:
- all the attributeStatements
-
getAuthorizationDecisionStatements
Return the List representing all theAuthorizationStatementsub elements.- Specified by:
getAuthorizationDecisionStatementsin interfaceAssertion- Returns:
- all the authorizationDecisionStatements.
-
getSignatureReferenceID
Gets the value of the ID attribute for this SAML object which will be used as its signature reference.- Specified by:
getSignatureReferenceIDin 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:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-