Package org.opensaml.saml.saml1.core
Interface Assertion
- All Superinterfaces:
Evidentiary,SAMLObject,SignableSAMLObject,SignableXMLObject,XMLObject
- All Known Implementing Classes:
AssertionImpl
This interface defines how the object representing a SAML 1
Assertion element behaves.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName for the attribute which defines Assertion ID.static final StringElement name, no namespace.static final QNameDefault element name.static final StringName for the attribute which defines the Issue Instant.static final StringName for the attribute which defines the issue instant.static final QNameQName for the attribute which defines the issue instant.static final StringName for the attribute which defines Issuer.static final StringName for the attribute which defines Major Version (attribute's value must be 1).static final StringName for the attribute which defines Minor Version.static final StringLocal name of the XSI type.static final QNameQName of the XSI type. -
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) .Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.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.voidsetConditions(Conditions conditions) Set the Object representing theConditionsSub element.voidGet the ID.voidsetIssueInstant(Instant issueInstant) Set the IssueInstance (attribute).voidSet the Issuer (attribute).voidsetVersion(SAMLVersion version) Set the SAML version of this assertion.Methods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceIDMethods 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, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
DEFAULT_ELEMENT_LOCAL_NAME
Element name, no namespace.- See Also:
-
DEFAULT_ELEMENT_NAME
Default element name. -
TYPE_LOCAL_NAME
Local name of the XSI type.- See Also:
-
TYPE_NAME
QName of the XSI type. -
MAJORVERSION_ATTRIB_NAME
Name for the attribute which defines Major Version (attribute's value must be 1).- See Also:
-
MINORVERSION_ATTRIB_NAME
Name for the attribute which defines Minor Version.- See Also:
-
ASSERTIONID_ATTRIB_NAME
Name for the attribute which defines Assertion ID.- See Also:
-
ISSUER_ATTRIB_NAME
Name for the attribute which defines Issuer.- See Also:
-
ISSUEINSTANT_ATTRIB_NAME
Name for the attribute which defines the issue instant.- See Also:
-
ISSUEINSTANT_ATTRIB_QNAME
QName for the attribute which defines the issue instant. -
ID_ATTRIB_NAME
Name for the attribute which defines the Issue Instant.- See Also:
-
-
Method Details
-
getID
Set the ID.- Returns:
- the ID
-
setID
Get the ID.- Parameters:
id- what to set
-
getMajorVersion
Deprecated, for removal: This API element is subject to removal in a future version.Get the MajorVersion attribute.Deprecated, use
getVersion().- Returns:
- the stored MajorVersion
-
getMinorVersion
Deprecated, for removal: This API element is subject to removal in a future version.Get the MinorVersion attribute.Deprecated, use
getVersion().- Returns:
- the stored MinorVersion
-
getVersion
Gets the SAML version for this message.- Returns:
- SAML version for this message
- Since:
- 5.0.0
-
setVersion
Set the SAML version of this assertion.- Parameters:
version- the SAML version of this assertion
-
getIssuer
Get the Issuer (which is an attribute) .- Returns:
- the Issuer
-
setIssuer
Set the Issuer (attribute).- Parameters:
issuer- the value to set
-
getIssueInstant
Get the IssueInstant (attribute).- Returns:
- the Issue Instant (as a Date)
-
setIssueInstant
Set the IssueInstance (attribute).- Parameters:
issueInstant- the issue instant value to set
-
getConditions
Return the (singleton) Object, representing theConditionssub element.- Returns:
- the Conditions object.
-
setConditions
Set the Object representing theConditionsSub element.- Parameters:
conditions- the condition to List
-
getAdvice
advice is a (singleton) Object, representing theAdvicesub element.- Returns:
- the advice object in this assertion
-
setAdvice
Set the Object representing theAdvicesub element.- Parameters:
advice- the object to set
-
getStatements
Return the List representing all theStatementsub elements.- Returns:
- the List representing all the statements
-
getStatements
Return the List representing all theStatementsub elements with a given schema type or element name.- Parameters:
typeOrName- the schema type or element name- Returns:
- the List representing all the statements
-
getSubjectStatements
Return the List representing all theSubjectStatementsub elements.- Returns:
- all the SubjectStatements
-
getAuthenticationStatements
Return the List representing all theAuthenticationStatementsub elements.- Returns:
- all the AuthenticationStatements
-
getAuthorizationDecisionStatements
Return the List representing all theAuthorizationStatementsub elements.- Returns:
- all the authorizationDecisionStatements.
-
getAttributeStatements
Return all theAttributeStatementelements.- Returns:
- all the attributeStatements
-