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()List<AttributeStatement>getAttributeStatements()List<AuthenticationStatement>getAuthenticationStatements()List<AuthorizationDecisionStatement>getAuthorizationDecisionStatements()ConditionsgetConditions()StringgetID()InstantgetIssueInstant()StringgetIssuer()intgetMajorVersion()intgetMinorVersion()List<XMLObject>getOrderedChildren()StringgetSignatureReferenceID()List<Statement>getStatements()List<Statement>getStatements(QName typeOrName)List<SubjectStatement>getSubjectStatements()voidsetAdvice(Advice adv)voidsetConditions(Conditions c)voidsetID(String newID)voidsetIssueInstant(Instant instant)voidsetIssuer(String iss)voidsetVersion(SAMLVersion newVersion)-
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()
- Specified by:
getMajorVersionin interfaceAssertion
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceAssertion
-
setVersion
public void setVersion(SAMLVersion newVersion)
- Specified by:
setVersionin interfaceAssertion
-
getIssueInstant
public Instant getIssueInstant()
- Specified by:
getIssueInstantin interfaceAssertion
-
setIssueInstant
public void setIssueInstant(Instant instant)
- Specified by:
setIssueInstantin interfaceAssertion
-
getConditions
public Conditions getConditions()
- Specified by:
getConditionsin interfaceAssertion
-
setConditions
public void setConditions(Conditions c)
- Specified by:
setConditionsin interfaceAssertion
-
getStatements
public List<Statement> getStatements()
- Specified by:
getStatementsin interfaceAssertion
-
getStatements
public List<Statement> getStatements(QName typeOrName)
- Specified by:
getStatementsin interfaceAssertion
-
getSubjectStatements
public List<SubjectStatement> getSubjectStatements()
- Specified by:
getSubjectStatementsin interfaceAssertion
-
getAuthenticationStatements
public List<AuthenticationStatement> getAuthenticationStatements()
- Specified by:
getAuthenticationStatementsin interfaceAssertion
-
getAuthorizationDecisionStatements
public List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
- Specified by:
getAuthorizationDecisionStatementsin interfaceAssertion
-
getAttributeStatements
public List<AttributeStatement> getAttributeStatements()
- Specified by:
getAttributeStatementsin interfaceAssertion
-
getSignatureReferenceID
public String getSignatureReferenceID()
- Specified by:
getSignatureReferenceIDin interfaceSignableSAMLObject
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-