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>
conditions
A Condition.private Instant
notBefore
Not Before conditions.private Instant
notOnOrAfter
Not 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 protected
ConditionsImpl(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)
Instant
getNotBefore()
Instant
getNotOnOrAfter()
OneTimeUse
getOneTimeUse()
List<XMLObject>
getOrderedChildren()
ProxyRestriction
getProxyRestriction()
void
setNotBefore(Instant newNotBefore)
void
setNotOnOrAfter(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:
getConditions
in interfaceConditions
-
getConditions
public List<Condition> getConditions(QName typeOrName)
- Specified by:
getConditions
in interfaceConditions
-
getAudienceRestrictions
public List<AudienceRestriction> getAudienceRestrictions()
- Specified by:
getAudienceRestrictions
in interfaceConditions
-
getOneTimeUse
public OneTimeUse getOneTimeUse()
- Specified by:
getOneTimeUse
in interfaceConditions
-
getProxyRestriction
public ProxyRestriction getProxyRestriction()
- Specified by:
getProxyRestriction
in interfaceConditions
-
getNotBefore
public Instant getNotBefore()
- Specified by:
getNotBefore
in interfaceConditions
-
setNotBefore
public void setNotBefore(Instant newNotBefore)
- Specified by:
setNotBefore
in interfaceConditions
-
getNotOnOrAfter
public Instant getNotOnOrAfter()
- Specified by:
getNotOnOrAfter
in interfaceConditions
-
setNotOnOrAfter
public void setNotOnOrAfter(Instant newNotOnOrAfter)
- Specified by:
setNotOnOrAfter
in interfaceConditions
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildren
in interfaceXMLObject
-
-