Class ConditionsImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.saml.saml2.core.impl.ConditionsImpl
-
- All Implemented Interfaces:
XMLObject,SAMLObject,Conditions
public class ConditionsImpl extends AbstractXMLObject implements Conditions
Concrete implementation ofConditions.
-
-
Field Summary
Fields Modifier and Type Field Description private IndexedXMLObjectChildrenList<Condition>conditionsA Condition.private InstantnotBeforeNot Before conditions.private InstantnotOnOrAfterNot On Or After conditions.-
Fields inherited from interface org.opensaml.saml.saml2.core.Conditions
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, NOT_BEFORE_ATTRIB_NAME, NOT_BEFORE_ATTRIB_QNAME, NOT_ON_OR_AFTER_ATTRIB_NAME, NOT_ON_OR_AFTER_ATTRIB_QNAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConditionsImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AudienceRestriction>getAudienceRestrictions()List<Condition>getConditions()List<Condition>getConditions(QName typeOrName)InstantgetNotBefore()InstantgetNotOnOrAfter()OneTimeUsegetOneTimeUse()List<XMLObject>getOrderedChildren()ProxyRestrictiongetProxyRestriction()voidsetNotBefore(Instant newNotBefore)voidsetNotOnOrAfter(Instant newNotOnOrAfter)-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
conditions
private final IndexedXMLObjectChildrenList<Condition> conditions
A Condition.
-
notBefore
private Instant notBefore
Not Before conditions.
-
notOnOrAfter
private Instant 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 inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getConditions
public List<Condition> getConditions()
- Specified by:
getConditionsin interfaceConditions
-
getConditions
public List<Condition> getConditions(QName typeOrName)
- Specified by:
getConditionsin interfaceConditions
-
getAudienceRestrictions
public List<AudienceRestriction> getAudienceRestrictions()
- Specified by:
getAudienceRestrictionsin interfaceConditions
-
getOneTimeUse
public OneTimeUse getOneTimeUse()
- Specified by:
getOneTimeUsein interfaceConditions
-
getProxyRestriction
public ProxyRestriction getProxyRestriction()
- Specified by:
getProxyRestrictionin interfaceConditions
-
getNotBefore
public Instant getNotBefore()
- Specified by:
getNotBeforein interfaceConditions
-
setNotBefore
public void setNotBefore(Instant newNotBefore)
- Specified by:
setNotBeforein interfaceConditions
-
getNotOnOrAfter
public Instant getNotOnOrAfter()
- Specified by:
getNotOnOrAfterin interfaceConditions
-
setNotOnOrAfter
public void setNotOnOrAfter(Instant newNotOnOrAfter)
- Specified by:
setNotOnOrAfterin interfaceConditions
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-