org.opensaml.saml1.core
Interface Assertion

All Superinterfaces:
Evidentiary, SAMLObject, SignableSAMLObject, org.opensaml.xml.signature.SignableXMLObject, org.opensaml.xml.validation.ValidatingXMLObject, org.opensaml.xml.XMLObject
All Known Implementing Classes:
AssertionImpl

public interface Assertion
extends SignableSAMLObject, Evidentiary

This interface defines how the object representing a SAML 1 Assertion element behaves.


Field Summary
static java.lang.String ASSERTIONID_ATTRIB_NAME
          Name for the attribute which defines Assertion ID
static java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
          Element name, no namespace.
static javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
          Default element name
static java.lang.String ID_ATTRIB_NAME
          Name for the attribute which defines the Issue Instant.
static java.lang.String ISSUEINSTANT_ATTRIB_NAME
          Name for the attribute which defines the issue instant
static java.lang.String ISSUER_ATTRIB_NAME
          Name for the attribute which defines Issuer
static java.lang.String MAJORVERSION_ATTRIB_NAME
          Name for the attribute which defines Major Version (attribute's value must be 1)
static java.lang.String MINORVERSION_ATTRIB_NAME
          Name for the attribute which defines Minor Version.
static java.lang.String TYPE_LOCAL_NAME
          Local name of the XSI type
static javax.xml.namespace.QName TYPE_NAME
          QName of the XSI type
 
Method Summary
 Advice getAdvice()
          advice is a (singleton) Object, representing the Advice sub element
 java.util.List<AttributeStatement> getAttributeStatements()
          Return all the AttributeStatement elements
 java.util.List<AuthenticationStatement> getAuthenticationStatements()
          Return the List representing all the AuthenticationStatement sub elements.
 java.util.List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
          Return the List representing all the AuthorizationStatement sub elements.
 Conditions getConditions()
          Return the (singleton) Object, representing the Conditions sub element.
 java.lang.String getID()
          Set the ID
 org.joda.time.DateTime getIssueInstant()
          Get the IssueInstant (attribute).
 java.lang.String getIssuer()
          Get the Issuer (which is an attribute) .
 int getMajorVersion()
          Get the MajorVersion attribute.
 int getMinorVersion()
          Get the MinorVersion attribute.
 java.util.List<Statement> getStatements()
          Return the List representing all the Statement sub elements.
 java.util.List<Statement> getStatements(javax.xml.namespace.QName typeOrName)
          Return the List representing all the Statement sub elements with a given schema type or element name.
 java.util.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(java.lang.String id)
          Get the ID
 void setIssueInstant(org.joda.time.DateTime issueInstant)
          Set the IssueInstance (attribute).
 void setIssuer(java.lang.String Issuer)
          Set the Issuer (attribute).
 void setVersion(SAMLVersion version)
          Sets the SAML version of this assertion.
 
Methods inherited from interface org.opensaml.common.SignableSAMLObject
getSignatureReferenceID
 
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, getNamespaces, getNoNamespaceSchemaLocation, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

DEFAULT_ELEMENT_LOCAL_NAME

static final java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
Element name, no namespace.

See Also:
Constant Field Values

DEFAULT_ELEMENT_NAME

static final javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
Default element name


TYPE_LOCAL_NAME

static final java.lang.String TYPE_LOCAL_NAME
Local name of the XSI type

See Also:
Constant Field Values

TYPE_NAME

static final javax.xml.namespace.QName TYPE_NAME
QName of the XSI type


MAJORVERSION_ATTRIB_NAME

static final java.lang.String MAJORVERSION_ATTRIB_NAME
Name for the attribute which defines Major Version (attribute's value must be 1)

See Also:
Constant Field Values

MINORVERSION_ATTRIB_NAME

static final java.lang.String MINORVERSION_ATTRIB_NAME
Name for the attribute which defines Minor Version.

See Also:
Constant Field Values

ASSERTIONID_ATTRIB_NAME

static final java.lang.String ASSERTIONID_ATTRIB_NAME
Name for the attribute which defines Assertion ID

See Also:
Constant Field Values

ISSUER_ATTRIB_NAME

static final java.lang.String ISSUER_ATTRIB_NAME
Name for the attribute which defines Issuer

See Also:
Constant Field Values

ISSUEINSTANT_ATTRIB_NAME

static final java.lang.String ISSUEINSTANT_ATTRIB_NAME
Name for the attribute which defines the issue instant

See Also:
Constant Field Values

ID_ATTRIB_NAME

static final java.lang.String ID_ATTRIB_NAME
Name for the attribute which defines the Issue Instant.

See Also:
Constant Field Values
Method Detail

getMajorVersion

int getMajorVersion()
Get the MajorVersion attribute.

Returns:
The stored MajorVersion

getMinorVersion

int getMinorVersion()
Get the MinorVersion attribute.

Returns:
The stored MinorVersion

setVersion

void setVersion(SAMLVersion version)
Sets the SAML version of this assertion.

Parameters:
version - the SAML version of this assertion

getIssuer

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

Returns:
the Issuer

setIssuer

void setIssuer(java.lang.String Issuer)
Set the Issuer (attribute).

Parameters:
Issuer - the value to set

getIssueInstant

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

Returns:
the Issue Instant (as a Date)

getID

java.lang.String getID()
Set the ID


setID

void setID(java.lang.String id)
Get the ID


setIssueInstant

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

Parameters:
issueInstant - the issue instant value to set

getConditions

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

Returns:
the Conditions object.

setConditions

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

Parameters:
conditions - the condition to List
Throws:
java.lang.IllegalArgumentException - if the condition has already been set into another object

getAdvice

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

Returns:
the advice object in this assertion

setAdvice

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

Parameters:
advice - the object to set
Throws:
java.lang.IllegalArgumentException - if the object has already been put into another SAMLObject

getStatements

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

Returns:
the List representing all the statements

getStatements

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

Parameters:
typeOrName - the schema type or element name
Returns:
the List representing all the statements

getSubjectStatements

java.util.List<SubjectStatement> getSubjectStatements()
Return the List representing all the SubjectStatement sub elements.

Returns:
all the SubjectStatements

getAuthenticationStatements

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

Returns:
all the AuthenticationStatements

getAuthorizationDecisionStatements

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

Returns:
all the authorizationDecisionStatements.

getAttributeStatements

java.util.List<AttributeStatement> getAttributeStatements()
Return all the AttributeStatement elements

Returns:
all the attributeStatements


Copyright © 2006-2012 Internet2. All Rights Reserved.