Package org.opensaml.saml.saml2.core
Interface Conditions
-
- All Superinterfaces:
SAMLObject,XMLObject
public interface Conditions extends SAMLObject
SAML 2.0 Core Conditions.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ELEMENT_LOCAL_NAMEElement local name.static QNameDEFAULT_ELEMENT_NAMEDefault element name.static StringNOT_BEFORE_ATTRIB_NAMENotBefore attribute name.static QNameNOT_BEFORE_ATTRIB_QNAMEQName for the NotBefore attribute.static StringNOT_ON_OR_AFTER_ATTRIB_NAMEName for the NotOnOrAfter attribute.static QNameNOT_ON_OR_AFTER_ATTRIB_QNAMEQName for the NotOnOrAfter attribute.static StringTYPE_LOCAL_NAMELocal name of the XSI type.static QNameTYPE_NAMEQName of the XSI type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AudienceRestriction>getAudienceRestrictions()Gets the audience restriction conditions for the assertion.List<Condition>getConditions()Gets all the conditions on the assertion.List<Condition>getConditions(QName typeOrName)Gets the list of conditions that match a particular QName.InstantgetNotBefore()Get the date/time before which the assertion is invalid.InstantgetNotOnOrAfter()Gets the date/time on, or after, which the assertion is invalid.OneTimeUsegetOneTimeUse()Gets the OneTimeUse condition for the assertion.ProxyRestrictiongetProxyRestriction()Gets the ProxyRestriction condition for the assertion.voidsetNotBefore(Instant newNotBefore)Sets the date/time before which the assertion is invalid.voidsetNotOnOrAfter(Instant newNotOnOrAfter)Sets the date/time on, or after, which the assertion is invalid.-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
DEFAULT_ELEMENT_LOCAL_NAME
static final String DEFAULT_ELEMENT_LOCAL_NAME
Element local name.- See Also:
- Constant Field Values
-
DEFAULT_ELEMENT_NAME
static final QName DEFAULT_ELEMENT_NAME
Default element name.
-
TYPE_LOCAL_NAME
static final String TYPE_LOCAL_NAME
Local name of the XSI type.- See Also:
- Constant Field Values
-
TYPE_NAME
static final QName TYPE_NAME
QName of the XSI type.
-
NOT_BEFORE_ATTRIB_NAME
static final String NOT_BEFORE_ATTRIB_NAME
NotBefore attribute name.- See Also:
- Constant Field Values
-
NOT_BEFORE_ATTRIB_QNAME
static final QName NOT_BEFORE_ATTRIB_QNAME
QName for the NotBefore attribute.
-
NOT_ON_OR_AFTER_ATTRIB_NAME
static final String NOT_ON_OR_AFTER_ATTRIB_NAME
Name for the NotOnOrAfter attribute.- See Also:
- Constant Field Values
-
NOT_ON_OR_AFTER_ATTRIB_QNAME
static final QName NOT_ON_OR_AFTER_ATTRIB_QNAME
QName for the NotOnOrAfter attribute.
-
-
Method Detail
-
getNotBefore
Instant getNotBefore()
Get the date/time before which the assertion is invalid.- Returns:
- the date/time before which the assertion is invalid
-
setNotBefore
void setNotBefore(Instant newNotBefore)
Sets the date/time before which the assertion is invalid.- Parameters:
newNotBefore- the date/time before which the assertion is invalid
-
getNotOnOrAfter
Instant getNotOnOrAfter()
Gets the date/time on, or after, which the assertion is invalid.- Returns:
- the date/time on, or after, which the assertion is invalid
-
setNotOnOrAfter
void setNotOnOrAfter(Instant newNotOnOrAfter)
Sets the date/time on, or after, which the assertion is invalid.- Parameters:
newNotOnOrAfter- the date/time on, or after, which the assertion is invalid
-
getConditions
List<Condition> getConditions()
Gets all the conditions on the assertion.- Returns:
- all the conditions on the assertion
-
getConditions
List<Condition> getConditions(@Nonnull QName typeOrName)
Gets the list of conditions that match a particular QName.- Parameters:
typeOrName- the QName of the conditions to return- Returns:
- the list of conditions that match the specified QName
-
getAudienceRestrictions
List<AudienceRestriction> getAudienceRestrictions()
Gets the audience restriction conditions for the assertion.- Returns:
- the audience restriction conditions for the assertion
-
getOneTimeUse
OneTimeUse getOneTimeUse()
Gets the OneTimeUse condition for the assertion.- Returns:
- the OneTimeUse condition for the assertion
-
getProxyRestriction
ProxyRestriction getProxyRestriction()
Gets the ProxyRestriction condition for the assertion.- Returns:
- the ProxyRestriction condition for the assertion
-
-