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
public class AssertionImpl extends AbstractSignableSAMLObject implements Assertion
A concrete implementation ofAssertion.
-
-
Field Summary
Fields Modifier and Type Field Description private AdviceadviceAdvice of the assertion.private ConditionsconditionsConditions of the assertion.private StringidID of the assertion.private InstantissueInstantIssue Instant of the assertion.private IssuerissuerIssuer of the assertion.private IndexedXMLObjectChildrenList<Statement>statementsStatements of the assertion.private SubjectsubjectSubject of the assertion.private SAMLVersionversionSAML 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
Constructors Modifier Constructor Description protectedAssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvicegetAdvice()Gets the Advice for this assertion.List<AttributeStatement>getAttributeStatements()Gets the list of AttributeStatement attached to this assertion.List<AuthnStatement>getAuthnStatements()Gets the list of AuthnStatements attached to this assertion.List<AuthzDecisionStatement>getAuthzDecisionStatements()Gets the list of AuthzDecisionStatements attached to this assertion.ConditionsgetConditions()Gets the Conditions placed on this assertion.StringgetID()Sets the ID of this assertion.InstantgetIssueInstant()Gets the issue instance of this assertion.IssuergetIssuer()Gets the Issuer of this assertion.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.StringgetSignatureReferenceID()Gets the value of the ID attribute for this SAML object which will be used as its signature reference.List<Statement>getStatements()Gets the list of statements attached to this assertion.List<Statement>getStatements(QName typeOrName)Gets the list of statements attached to this assertion that match a particular QName.SubjectgetSubject()Gets the Subject of this assertion.SAMLVersiongetVersion()Gets the SAML Version of this assertion.voidsetAdvice(Advice newAdvice)Sets the Advice for this assertion.voidsetConditions(Conditions newConditions)Sets the Conditions placed on this assertion.voidsetID(String newID)Sets the ID of this assertion.voidsetIssueInstant(Instant newIssueInstance)Sets the issue instance of this assertion.voidsetIssuer(Issuer newIssuer)Sets the Issuer of this assertion.voidsetSubject(Subject newSubject)Sets the Subject of this assertion.voidsetVersion(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 Detail
-
version
private SAMLVersion version
SAML Version of the assertion.
-
issueInstant
private Instant issueInstant
Issue Instant of the assertion.
-
id
private String id
ID of the assertion.
-
issuer
private Issuer issuer
Issuer of the assertion.
-
subject
private Subject subject
Subject of the assertion.
-
conditions
private Conditions conditions
Conditions of the assertion.
-
advice
private Advice advice
Advice of the assertion.
-
statements
private final IndexedXMLObjectChildrenList<Statement> statements
Statements of the assertion.
-
-
Constructor Detail
-
AssertionImpl
protected AssertionImpl(String namespaceURI, String elementLocalName, 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 Detail
-
getVersion
public SAMLVersion getVersion()
Gets the SAML Version of this assertion.- Specified by:
getVersionin interfaceAssertion- Returns:
- the SAML Version of this assertion.
-
setVersion
public void setVersion(SAMLVersion newVersion)
Sets the SAML Version of this assertion.- Specified by:
setVersionin interfaceAssertion- Parameters:
newVersion- the SAML Version of this assertion
-
getIssueInstant
public Instant getIssueInstant()
Gets the issue instance of this assertion.- Specified by:
getIssueInstantin interfaceAssertion- Returns:
- the issue instance of this assertion
-
setIssueInstant
public void setIssueInstant(Instant newIssueInstance)
Sets the issue instance of this assertion.- Specified by:
setIssueInstantin interfaceAssertion- Parameters:
newIssueInstance- the issue instance of this assertion
-
getID
public String getID()
Sets the ID of this assertion.
-
setID
public void setID(String newID)
Sets the ID of this assertion.
-
getIssuer
public Issuer getIssuer()
Gets the Issuer of this assertion.
-
setIssuer
public void setIssuer(Issuer newIssuer)
Sets the Issuer of this assertion.
-
getSubject
public Subject getSubject()
Gets the Subject of this assertion.- Specified by:
getSubjectin interfaceAssertion- Returns:
- the Subject of this assertion
-
setSubject
public void setSubject(Subject newSubject)
Sets the Subject of this assertion.- Specified by:
setSubjectin interfaceAssertion- Parameters:
newSubject- the Subject of this assertion
-
getConditions
public Conditions getConditions()
Gets the Conditions placed on this assertion.- Specified by:
getConditionsin interfaceAssertion- Returns:
- the Conditions placed on this assertion
-
setConditions
public void setConditions(Conditions newConditions)
Sets the Conditions placed on this assertion.- Specified by:
setConditionsin interfaceAssertion- Parameters:
newConditions- the Conditions placed on this assertion
-
getAdvice
public Advice getAdvice()
Gets the Advice for this assertion.
-
setAdvice
public void setAdvice(Advice newAdvice)
Sets the Advice for this assertion.
-
getStatements
public List<Statement> getStatements()
Gets the list of statements attached to this assertion.- Specified by:
getStatementsin interfaceAssertion- Returns:
- the list of statements attached to this assertion
-
getStatements
public List<Statement> getStatements(QName typeOrName)
Gets the list of statements attached to this assertion that match a particular QName.- Specified by:
getStatementsin interfaceAssertion- Parameters:
typeOrName- the QName of the statements to return- Returns:
- the list of statements attached to this assertion
-
getAuthnStatements
public List<AuthnStatement> getAuthnStatements()
Gets the list of AuthnStatements attached to this assertion.- Specified by:
getAuthnStatementsin interfaceAssertion- Returns:
- the list of AuthnStatements attached to this assertion
-
getAuthzDecisionStatements
public List<AuthzDecisionStatement> getAuthzDecisionStatements()
Gets the list of AuthzDecisionStatements attached to this assertion.- Specified by:
getAuthzDecisionStatementsin interfaceAssertion- Returns:
- the list of AuthzDecisionStatements attached to this assertion
-
getAttributeStatements
public List<AttributeStatement> getAttributeStatements()
Gets the list of AttributeStatement attached to this assertion.- Specified by:
getAttributeStatementsin interfaceAssertion- Returns:
- the list of AttributeStatement attached to this assertion
-
getSignatureReferenceID
public String 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
public List<XMLObject> 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
-
-