org.opensaml.saml2.core.impl
Class AssertionImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.signature.AbstractSignableXMLObject
          extended by org.opensaml.xml.AbstractValidatingSignableXMLObject
              extended by org.opensaml.common.impl.AbstractSignableSAMLObject
                  extended by org.opensaml.saml2.core.impl.AssertionImpl
All Implemented Interfaces:
SAMLObject, SignableSAMLObject, Assertion, Evidentiary, SignableXMLObject, ValidatingXMLObject, XMLObject

public class AssertionImpl
extends AbstractSignableSAMLObject
implements Assertion

A concrete implementation of Assertion.


Field Summary
private  Advice advice
          Advice of the assertion.
private  Conditions conditions
          Conditions of the assertion.
private  String id
          ID of the assertion.
private  org.joda.time.DateTime issueInstant
          Issue Instant of the assertion.
private  Issuer issuer
          Issuer of the assertion.
private  IndexedXMLObjectChildrenList<Statement> statements
          Statements of the assertion.
private  Subject subject
          Subject of the assertion.
private  SAMLVersion version
          SAML Version of the assertion.
 
Fields inherited from interface org.opensaml.saml2.core.Assertion
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUE_INSTANT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME, VERSION_ATTRIB_NAME
 
Constructor Summary
protected AssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 Advice getAdvice()
          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.
 Conditions getConditions()
          Gets the Conditions placed on this assertion.
 String getID()
          Sets the ID of this assertion.
 org.joda.time.DateTime getIssueInstant()
          Gets the issue instance of this assertion.
 Issuer getIssuer()
          Gets the Issuer of this assertion.
 List<XMLObject> getOrderedChildren()
          
 String getSignatureReferenceID()
          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.
 Subject getSubject()
          Gets the Subject of this assertion.
 SAMLVersion getVersion()
          Gets the SAML Version of this assertion.
 void setAdvice(Advice newAdvice)
          Sets the Advice for this assertion.
 void setConditions(Conditions newConditions)
          Sets the Conditions placed on this assertion.
 void setID(String newID)
          Sets the ID of this assertion.
 void setIssueInstant(org.joda.time.DateTime newIssueInstance)
          Sets the issue instance of this assertion.
 void setIssuer(Issuer newIssuer)
          Sets the Issuer of this assertion.
 void setSubject(Subject newSubject)
          Sets the Subject of this assertion.
 void setVersion(SAMLVersion newVersion)
          Sets the SAML Version of this assertion.
 
Methods inherited from class org.opensaml.common.impl.AbstractSignableSAMLObject
equals, prepareForAssignment, setSignature
 
Methods inherited from class org.opensaml.xml.AbstractValidatingSignableXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.signature.AbstractSignableXMLObject
getSignature, isSigned
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.signature.SignableXMLObject
getSignature, isSigned, setSignature
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

version

private SAMLVersion version
SAML Version of the assertion.


issueInstant

private org.joda.time.DateTime 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 in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getVersion

public SAMLVersion getVersion()
Gets the SAML Version of this assertion.

Specified by:
getVersion in interface Assertion
Returns:
the SAML Version of this assertion.

setVersion

public void setVersion(SAMLVersion newVersion)
Sets the SAML Version of this assertion.

Specified by:
setVersion in interface Assertion
Parameters:
newVersion - the SAML Version of this assertion

getIssueInstant

public org.joda.time.DateTime getIssueInstant()
Gets the issue instance of this assertion.

Specified by:
getIssueInstant in interface Assertion
Returns:
the issue instance of this assertion

setIssueInstant

public void setIssueInstant(org.joda.time.DateTime newIssueInstance)
Sets the issue instance of this assertion.

Specified by:
setIssueInstant in interface Assertion
Parameters:
newIssueInstance - the issue instance of this assertion

getID

public String getID()
Sets the ID of this assertion.

Specified by:
getID in interface Assertion
Returns:
the ID of this assertion

setID

public void setID(String newID)
Sets the ID of this assertion.

Specified by:
setID in interface Assertion
Parameters:
newID - the ID of this assertion

getIssuer

public Issuer getIssuer()
Gets the Issuer of this assertion.

Specified by:
getIssuer in interface Assertion
Returns:
the Issuer of this assertion

setIssuer

public void setIssuer(Issuer newIssuer)
Sets the Issuer of this assertion.

Specified by:
setIssuer in interface Assertion
Parameters:
newIssuer - the Issuer of this assertion

getSubject

public Subject getSubject()
Gets the Subject of this assertion.

Specified by:
getSubject in interface Assertion
Returns:
the Subject of this assertion

setSubject

public void setSubject(Subject newSubject)
Sets the Subject of this assertion.

Specified by:
setSubject in interface Assertion
Parameters:
newSubject - the Subject of this assertion

getConditions

public Conditions getConditions()
Gets the Conditions placed on this assertion.

Specified by:
getConditions in interface Assertion
Returns:
the Conditions placed on this assertion

setConditions

public void setConditions(Conditions newConditions)
Sets the Conditions placed on this assertion.

Specified by:
setConditions in interface Assertion
Parameters:
newConditions - the Conditions placed on this assertion

getAdvice

public Advice getAdvice()
Gets the Advice for this assertion.

Specified by:
getAdvice in interface Assertion
Returns:
the Advice for this assertion

setAdvice

public void setAdvice(Advice newAdvice)
Sets the Advice for this assertion.

Specified by:
setAdvice in interface Assertion
Parameters:
newAdvice - the Advice for this assertion

getStatements

public List<Statement> getStatements()
Gets the list of statements attached to this assertion.

Specified by:
getStatements in interface Assertion
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:
getStatements in interface Assertion
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:
getAuthnStatements in interface Assertion
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:
getAuthzDecisionStatements in interface Assertion
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:
getAttributeStatements in interface Assertion
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:
getSignatureReferenceID in interface SignableSAMLObject
Returns:
the value of this SAMLObject ID attribute

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2012. All Rights Reserved.