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 theAdvice
element.private Conditions
(Possibly null) Singleton object version of theConditions
element.private String
TheAssertionID
attrribute.private Instant
Object version of theIssueInstant
attribute.private String
Object version of theIssuer
attribute.private final IndexedXMLObjectChildrenList<Statement>
Object representation of all theStatement
elements.private SAMLVersion
SAML 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
ConstructorsModifierConstructorDescriptionprotected
AssertionImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionadvice is a (singleton) Object, representing theAdvice
sub element.Return all theAttributeStatement
elements.Return the List representing all theAuthenticationStatement
sub elements.Return the List representing all theAuthorizationStatement
sub elements.Return the (singleton) Object, representing theConditions
sub element.getID()
Set the ID.Get the IssueInstant (attribute).Get the Issuer (which is an attribute) .int
Get the MajorVersion attribute.int
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 theStatement
sub elements.getStatements
(QName typeOrName) Return the List representing all theStatement
sub elements with a given schema type or element name.Return the List representing all theSubjectStatement
sub elements.void
Set the Object representing theAdvice
sub element.void
Set the Object representing theConditions
Sub element.void
Get the ID.void
setIssueInstant
(Instant instant) Set the IssueInstance (attribute).void
Set the Issuer (attribute).void
setVersion
(SAMLVersion newVersion) Set 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
-
id
TheAssertionID
attrribute. -
version
SAML version of this assertion. -
issuer
Object version of theIssuer
attribute. -
issueInstant
Object version of theIssueInstant
attribute. -
conditions
(Possibly null) Singleton object version of theConditions
element. -
advice
(Possibly null) Singleton object version of theAdvice
element. -
statements
Object representation of all theStatement
elements.
-
-
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
-
getMajorVersion
public int getMajorVersion()Get the MajorVersion attribute.- Specified by:
getMajorVersion
in interfaceAssertion
- Returns:
- the stored MajorVersion
-
getMinorVersion
public int getMinorVersion()Get the MinorVersion attribute.- Specified by:
getMinorVersion
in interfaceAssertion
- Returns:
- the stored MinorVersion
-
setVersion
Set the SAML version of this assertion.- Specified by:
setVersion
in 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:
getIssueInstant
in interfaceAssertion
- Returns:
- the Issue Instant (as a Date)
-
setIssueInstant
Set the IssueInstance (attribute).- Specified by:
setIssueInstant
in interfaceAssertion
- Parameters:
instant
- the issue instant value to set
-
getConditions
Return the (singleton) Object, representing theConditions
sub element.- Specified by:
getConditions
in interfaceAssertion
- Returns:
- the Conditions object.
-
setConditions
Set the Object representing theConditions
Sub element.- Specified by:
setConditions
in interfaceAssertion
- Parameters:
c
- the condition to List
-
getAdvice
advice is a (singleton) Object, representing theAdvice
sub element. -
setAdvice
Set the Object representing theAdvice
sub element. -
getStatements
Return the List representing all theStatement
sub elements.- Specified by:
getStatements
in interfaceAssertion
- Returns:
- the List representing all the statements
-
getStatements
Return the List representing all theStatement
sub elements with a given schema type or element name.- Specified by:
getStatements
in interfaceAssertion
- Parameters:
typeOrName
- the schema type or element name- Returns:
- the List representing all the statements
-
getSubjectStatements
Return the List representing all theSubjectStatement
sub elements.- Specified by:
getSubjectStatements
in interfaceAssertion
- Returns:
- all the SubjectStatements
-
getAuthenticationStatements
Return the List representing all theAuthenticationStatement
sub elements.- Specified by:
getAuthenticationStatements
in interfaceAssertion
- Returns:
- all the AuthenticationStatements
-
getAuthorizationDecisionStatements
Return the List representing all theAuthorizationStatement
sub elements.- Specified by:
getAuthorizationDecisionStatements
in interfaceAssertion
- Returns:
- all the authorizationDecisionStatements.
-
getAttributeStatements
Return all theAttributeStatement
elements.- Specified by:
getAttributeStatements
in interfaceAssertion
- Returns:
- all the attributeStatements
-
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
-