public class AssertionImpl extends AbstractSignableSAMLObject implements Assertion
Assertion
statement.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
Modifier | Constructor and Description |
---|---|
protected |
AssertionImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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<org.opensaml.xml.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.
|
equals, prepareForAssignment, setSignature
deregisterValidator, getValidators, registerValidator, validate, validateChildren
getSignature, isSigned
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
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSignature, isSigned, setSignature
deregisterValidator, getValidators, registerValidator, validate
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
protected AssertionImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespacepublic int getMajorVersion()
getMajorVersion
in interface Assertion
public int getMinorVersion()
getMinorVersion
in interface Assertion
public void setVersion(SAMLVersion newVersion)
setVersion
in interface Assertion
newVersion
- the SAML version of this assertionpublic String getIssuer()
public void setIssuer(String issuer)
public org.joda.time.DateTime getIssueInstant()
getIssueInstant
in interface Assertion
public void setIssueInstant(org.joda.time.DateTime issueInstant)
setIssueInstant
in interface Assertion
issueInstant
- the issue instant value to setpublic Conditions getConditions()
Conditions
sub element.getConditions
in interface Assertion
public void setConditions(Conditions conditions) throws IllegalArgumentException
Conditions
Sub element.setConditions
in interface Assertion
conditions
- the condition to ListIllegalArgumentException
- if the condition has already been set into another objectpublic Advice getAdvice()
Advice
sub elementpublic void setAdvice(Advice advice) throws IllegalArgumentException
Advice
sub element.setAdvice
in interface Assertion
advice
- the object to setIllegalArgumentException
- if the object has already been put into another SAMLObjectpublic List<Statement> getStatements()
Statement
sub elements.getStatements
in interface Assertion
public List<Statement> getStatements(QName typeOrName)
Statement
sub elements with a given schema type or element name.getStatements
in interface Assertion
typeOrName
- the schema type or element namepublic List<SubjectStatement> getSubjectStatements()
SubjectStatement
sub elements.getSubjectStatements
in interface Assertion
public List<AuthenticationStatement> getAuthenticationStatements()
AuthenticationStatement
sub elements.getAuthenticationStatements
in interface Assertion
public List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements()
AuthorizationStatement
sub elements.getAuthorizationDecisionStatements
in interface Assertion
public List<AttributeStatement> getAttributeStatements()
AttributeStatement
elementsgetAttributeStatements
in interface Assertion
public String getSignatureReferenceID()
getSignatureReferenceID
in interface SignableSAMLObject
public List<org.opensaml.xml.XMLObject> getOrderedChildren()
getOrderedChildren
in interface org.opensaml.xml.XMLObject
Copyright © 1999-2013. All Rights Reserved.