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
public class AssertionImpl extends AbstractSignableSAMLObject implements Assertion
This class implements the SAML 1Assertionstatement.
-
-
Field Summary
Fields Modifier and Type Field Description private Adviceadvice(Possibly null) Singleton object version of theAdviceelement.private Conditionsconditions(Possibly null) Singleton object version of theConditionselement.private StringidTheAssertionIDattrribute.private InstantissueInstantObject version of theIssueInstantattribute.private StringissuerObject version of theIssuerattribute.private IndexedXMLObjectChildrenList<Statement>statementsObject representation of all theStatementelements.private SAMLVersionversionSAML 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
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()advice is a (singleton) Object, representing theAdvicesub element.List<AttributeStatement>getAttributeStatements()Return all theAttributeStatementelements.List<AuthenticationStatement>getAuthenticationStatements()Return the List representing all theAuthenticationStatementsub elements.List<AuthorizationDecisionStatement>getAuthorizationDecisionStatements()Return the List representing all theAuthorizationStatementsub elements.ConditionsgetConditions()Return the (singleton) Object, representing theConditionssub element.StringgetID()Set the ID.InstantgetIssueInstant()Get the IssueInstant (attribute).StringgetIssuer()Get the Issuer (which is an attribute) .intgetMajorVersion()Get the MajorVersion attribute.intgetMinorVersion()Get the MinorVersion attribute.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()Return the List representing all theStatementsub elements.List<Statement>getStatements(QName typeOrName)Return the List representing all theStatementsub elements with a given schema type or element name.List<SubjectStatement>getSubjectStatements()Return the List representing all theSubjectStatementsub elements.voidsetAdvice(Advice adv)Set the Object representing theAdvicesub element.voidsetConditions(Conditions c)Set the Object representing theConditionsSub element.voidsetID(String newID)Get the ID.voidsetIssueInstant(Instant instant)Set the IssueInstance (attribute).voidsetIssuer(String iss)Set the Issuer (attribute).voidsetVersion(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 Detail
-
id
private String id
TheAssertionIDattrribute.
-
version
private SAMLVersion version
SAML version of this assertion.
-
issuer
private String issuer
Object version of theIssuerattribute.
-
issueInstant
private Instant issueInstant
Object version of theIssueInstantattribute.
-
conditions
private Conditions conditions
(Possibly null) Singleton object version of theConditionselement.
-
advice
private Advice advice
(Possibly null) Singleton object version of theAdviceelement.
-
statements
private final IndexedXMLObjectChildrenList<Statement> statements
Object representation of all theStatementelements.
-
-
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
-
getMajorVersion
public int getMajorVersion()
Get the MajorVersion attribute.- Specified by:
getMajorVersionin interfaceAssertion- Returns:
- the stored MajorVersion
-
getMinorVersion
public int getMinorVersion()
Get the MinorVersion attribute.- Specified by:
getMinorVersionin interfaceAssertion- Returns:
- the stored MinorVersion
-
setVersion
public void setVersion(SAMLVersion newVersion)
Set the SAML version of this assertion.- Specified by:
setVersionin interfaceAssertion- Parameters:
newVersion- the SAML version of this assertion
-
setID
public void setID(String newID)
Get the ID.
-
getIssuer
public String getIssuer()
Get the Issuer (which is an attribute) .
-
setIssuer
public void setIssuer(String iss)
Set the Issuer (attribute).
-
getIssueInstant
public Instant getIssueInstant()
Get the IssueInstant (attribute).- Specified by:
getIssueInstantin interfaceAssertion- Returns:
- the Issue Instant (as a Date)
-
setIssueInstant
public void setIssueInstant(Instant instant)
Set the IssueInstance (attribute).- Specified by:
setIssueInstantin interfaceAssertion- Parameters:
instant- the issue instant value to set
-
getConditions
public Conditions getConditions()
Return the (singleton) Object, representing theConditionssub element.- Specified by:
getConditionsin interfaceAssertion- Returns:
- the Conditions object.
-
setConditions
public void setConditions(Conditions c)
Set the Object representing theConditionsSub element.- Specified by:
setConditionsin interfaceAssertion- Parameters:
c- the condition to List
-
getAdvice
public Advice getAdvice()
advice is a (singleton) Object, representing theAdvicesub element.
-
setAdvice
public void setAdvice(Advice adv)
Set the Object representing theAdvicesub element.
-
getStatements
public List<Statement> getStatements()
Return the List representing all theStatementsub elements.- Specified by:
getStatementsin interfaceAssertion- Returns:
- the List representing all the statements
-
getStatements
public List<Statement> getStatements(QName typeOrName)
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
public List<SubjectStatement> getSubjectStatements()
Return the List representing all theSubjectStatementsub elements.- Specified by:
getSubjectStatementsin interfaceAssertion- Returns:
- all the SubjectStatements
-
getAuthenticationStatements
public List<AuthenticationStatement> getAuthenticationStatements()
Return the List representing all theAuthenticationStatementsub elements.- Specified by:
getAuthenticationStatementsin interfaceAssertion- Returns:
- all the AuthenticationStatements
-
getAuthorizationDecisionStatements
public List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
Return the List representing all theAuthorizationStatementsub elements.- Specified by:
getAuthorizationDecisionStatementsin interfaceAssertion- Returns:
- all the authorizationDecisionStatements.
-
getAttributeStatements
public List<AttributeStatement> getAttributeStatements()
Return all theAttributeStatementelements.- Specified by:
getAttributeStatementsin interfaceAssertion- Returns:
- all the attributeStatements
-
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
-
-