org.opensaml.saml1.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.saml1.core.impl.AssertionImpl
All Implemented Interfaces:
SAMLObject, SignableSAMLObject, Assertion, Evidentiary, SignableXMLObject, ValidatingXMLObject, XMLObject

public class AssertionImpl
extends AbstractSignableSAMLObject
implements Assertion

This class implements the SAML 1 Assertion statement.


Field Summary
private  Advice advice
          (Possibly null) Singleton object version of the Advice element.
private  Conditions conditions
          (Possibly null) Singleton object version of the Conditions element.
private  String id
          The AssertionID attrribute
private  org.joda.time.DateTime issueInstant
          Object version of the IssueInstant attribute.
private  String issuer
          Object version of the Issuer attribute.
private  IndexedXMLObjectChildrenList<Statement> statements
          Object representnation of all the Statement <\code> elements.
private  SAMLVersion version
          SAML version of this assertion
 
Fields inherited from interface org.opensaml.saml1.core.Assertion
ASSERTIONID_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, ISSUEINSTANT_ATTRIB_NAME, ISSUER_ATTRIB_NAME, MAJORVERSION_ATTRIB_NAME, MINORVERSION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected AssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor
 
Method Summary
 Advice getAdvice()
          advice is a (singleton) Object, representing the Advice sub element
 List<AttributeStatement> getAttributeStatements()
          Return all the AttributeStatement elements
 List<AuthenticationStatement> getAuthenticationStatements()
          Return the List representing all the AuthenticationStatement sub elements.
 List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
          Return the List representing all the AuthorizationStatement sub elements.
 Conditions getConditions()
          Return the (singleton) Object, representing the Conditions sub element.
 String getID()
          Set the ID
 org.joda.time.DateTime getIssueInstant()
          Get the IssueInstant (attribute).
 String getIssuer()
          Get the Issuer (which is an attribute) .
 int getMajorVersion()
          Get the MajorVersion attribute.
 int getMinorVersion()
          Get the MinorVersion attribute.
 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()
          Return the List representing all the Statement sub elements.
 List<Statement> getStatements(QName typeOrName)
          Return the List representing all the Statement sub elements with a given schema type or element name.
 List<SubjectStatement> getSubjectStatements()
          Return the List representing all the SubjectStatement sub elements.
 void setAdvice(Advice advice)
          Set the Object representing the Advice sub element.
 void setConditions(Conditions conditions)
          Set the Object representing the Conditions Sub element.
 void setID(String id)
          Get the ID
 void setIssueInstant(org.joda.time.DateTime issueInstant)
          Set the IssueInstance (attribute).
 void setIssuer(String issuer)
          Set the Issuer (attribute).
 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

id

private String id
The AssertionID attrribute


version

private SAMLVersion version
SAML version of this assertion


issuer

private String issuer
Object version of the Issuer attribute.


issueInstant

private org.joda.time.DateTime issueInstant
Object version of the IssueInstant attribute.


conditions

private Conditions conditions
(Possibly null) Singleton object version of the Conditions element.


advice

private Advice advice
(Possibly null) Singleton object version of the Advice element.


statements

private final IndexedXMLObjectChildrenList<Statement> statements
Object representnation of all the Statement <\code> elements.

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

getMajorVersion

public int getMajorVersion()
Get the MajorVersion attribute.

Specified by:
getMajorVersion in interface Assertion
Returns:
The stored MajorVersion

getMinorVersion

public int getMinorVersion()
Get the MinorVersion attribute.

Specified by:
getMinorVersion in interface Assertion
Returns:
The stored MinorVersion

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

getID

public String getID()
Set the ID

Specified by:
getID in interface Assertion

setID

public void setID(String id)
Get the ID

Specified by:
setID in interface Assertion

getIssuer

public String getIssuer()
Get the Issuer (which is an attribute) .

Specified by:
getIssuer in interface Assertion
Returns:
the Issuer

setIssuer

public void setIssuer(String issuer)
Set the Issuer (attribute).

Specified by:
setIssuer in interface Assertion
Parameters:
issuer - the value to set

getIssueInstant

public org.joda.time.DateTime getIssueInstant()
Get the IssueInstant (attribute).

Specified by:
getIssueInstant in interface Assertion
Returns:
the Issue Instant (as a Date)

setIssueInstant

public void setIssueInstant(org.joda.time.DateTime issueInstant)
Set the IssueInstance (attribute).

Specified by:
setIssueInstant in interface Assertion
Parameters:
issueInstant - the issue instant value to set

getConditions

public Conditions getConditions()
Return the (singleton) Object, representing the Conditions sub element.

Specified by:
getConditions in interface Assertion
Returns:
the Conditions object.

setConditions

public void setConditions(Conditions conditions)
                   throws IllegalArgumentException
Set the Object representing the Conditions Sub element.

Specified by:
setConditions in interface Assertion
Parameters:
conditions - the condition to List
Throws:
IllegalArgumentException - if the condition has already been set into another object

getAdvice

public Advice getAdvice()
advice is a (singleton) Object, representing the Advice sub element

Specified by:
getAdvice in interface Assertion
Returns:
the advice object in this assertion

setAdvice

public void setAdvice(Advice advice)
               throws IllegalArgumentException
Set the Object representing the Advice sub element.

Specified by:
setAdvice in interface Assertion
Parameters:
advice - the object to set
Throws:
IllegalArgumentException - if the object has already been put into another SAMLObject

getStatements

public List<Statement> getStatements()
Return the List representing all the Statement sub elements.

Specified by:
getStatements in interface Assertion
Returns:
the List representing all the statements

getStatements

public List<Statement> getStatements(QName typeOrName)
Return the List representing all the Statement sub elements with a given schema type or element name.

Specified by:
getStatements in interface Assertion
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 the SubjectStatement sub elements.

Specified by:
getSubjectStatements in interface Assertion
Returns:
all the SubjectStatements

getAuthenticationStatements

public List<AuthenticationStatement> getAuthenticationStatements()
Return the List representing all the AuthenticationStatement sub elements.

Specified by:
getAuthenticationStatements in interface Assertion
Returns:
all the AuthenticationStatements

getAuthorizationDecisionStatements

public List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
Return the List representing all the AuthorizationStatement sub elements.

Specified by:
getAuthorizationDecisionStatements in interface Assertion
Returns:
all the authorizationDecisionStatements.

getAttributeStatements

public List<AttributeStatement> getAttributeStatements()
Return all the AttributeStatement elements

Specified by:
getAttributeStatements in interface Assertion
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:
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.