org.opensaml.saml2.core.impl
Class ConditionsImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml2.core.impl.ConditionsImpl
All Implemented Interfaces:
SAMLObject, Conditions, ValidatingXMLObject, XMLObject

public class ConditionsImpl
extends AbstractSAMLObject
implements Conditions

Concrete implementation of Conditions.


Field Summary
private  IndexedXMLObjectChildrenList<Condition> conditions
          A Condition.
private  org.joda.time.DateTime notBefore
          Not Before conditions.
private  org.joda.time.DateTime notOnOrAfter
          Not On Or After conditions.
 
Fields inherited from interface org.opensaml.saml2.core.Conditions
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOT_BEFORE_ATTRIB_NAME, NOT_ON_OR_AFTER_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected ConditionsImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 List<AudienceRestriction> getAudienceRestrictions()
          Gets the audience restriction conditions for the assertion.
 List<Condition> getConditions()
          Gets all the conditions on the assertion.
 org.joda.time.DateTime getNotBefore()
          Get the date/time before which the assertion is invalid.
 org.joda.time.DateTime getNotOnOrAfter()
          Gets the date/time on, or after, which the assertion is invalid.
 OneTimeUse getOneTimeUse()
          Gets the OneTimeUse condition for the assertion.
 List<XMLObject> getOrderedChildren()
          
 ProxyRestriction getProxyRestriction()
          Gets the ProxyRestriction condition for the assertion.
 void setNotBefore(org.joda.time.DateTime newNotBefore)
          Sets the date/time before which the assertion is invalid.
 void setNotOnOrAfter(org.joda.time.DateTime newNotOnOrAfter)
          Sets the date/time on, or after, which the assertion is invalid.
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, hashCode, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
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, notify, notifyAll, toString, wait, wait, wait
 
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

conditions

private final IndexedXMLObjectChildrenList<Condition> conditions
A Condition.


notBefore

private org.joda.time.DateTime notBefore
Not Before conditions.


notOnOrAfter

private org.joda.time.DateTime notOnOrAfter
Not On Or After conditions.

Constructor Detail

ConditionsImpl

protected ConditionsImpl(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

getConditions

public List<Condition> getConditions()
Gets all the conditions on the assertion.

Specified by:
getConditions in interface Conditions
Returns:
all the conditions on the assertion

getAudienceRestrictions

public List<AudienceRestriction> getAudienceRestrictions()
Gets the audience restriction conditions for the assertion.

Specified by:
getAudienceRestrictions in interface Conditions
Returns:
the audience restriction conditions for the assertion

getOneTimeUse

public OneTimeUse getOneTimeUse()
Gets the OneTimeUse condition for the assertion.

Specified by:
getOneTimeUse in interface Conditions
Returns:
the OneTimeUse condition for the assertion

getProxyRestriction

public ProxyRestriction getProxyRestriction()
Gets the ProxyRestriction condition for the assertion.

Specified by:
getProxyRestriction in interface Conditions
Returns:
the ProxyRestriction condition for the assertion

getNotBefore

public org.joda.time.DateTime getNotBefore()
Get the date/time before which the assertion is invalid.

Specified by:
getNotBefore in interface Conditions
Returns:
the date/time before which the assertion is invalid

setNotBefore

public void setNotBefore(org.joda.time.DateTime newNotBefore)
Sets the date/time before which the assertion is invalid.

Specified by:
setNotBefore in interface Conditions
Parameters:
newNotBefore - the date/time before which the assertion is invalid

getNotOnOrAfter

public org.joda.time.DateTime getNotOnOrAfter()
Gets the date/time on, or after, which the assertion is invalid.

Specified by:
getNotOnOrAfter in interface Conditions
Returns:
the date/time on, or after, which the assertion is invalid

setNotOnOrAfter

public void setNotOnOrAfter(org.joda.time.DateTime newNotOnOrAfter)
Sets the date/time on, or after, which the assertion is invalid.

Specified by:
setNotOnOrAfter in interface Conditions
Parameters:
newNotOnOrAfter - the date/time on, or after, which the assertion is invalid

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.