Package com.sun.identity.saml2.assertion
Interface Conditions
- All Superinterfaces:
XmlSerializable
The
Conditions
defines the SAML constructs that place
constraints on the acceptable use if SAML Assertion
s.-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkDateValidity
(long someTime) Return true if a specific Date falls within the validity interval of this set of conditions.boolean
checkDateValidityWithSkew
(long someTime, int skewTime) Return true if a specific Date falls within the validity interval of this set of conditions.Returns a list ofAudienceRestriction
Returns a list ofCondition
Returns the time instant before which the subject cannot be confirmed.Returns the time instant at which the subject can no longer be confirmed.Returns a list ofOneTimeUse
Returns a list ofProxyRestriction
boolean
Returns true if the object is mutablevoid
Makes the object immutablevoid
Sets a list ofAudienceRestriction
void
setConditions
(List<Condition> conditions) Sets a list ofCondition
void
setNotBefore
(Date value) Sets the time instant before which the subject cannot be confirmed.void
setNotOnOrAfter
(Date value) Sets the time instant at which the subject can no longer be confirmed.void
setOneTimeUses
(List<OneTimeUse> oneTimeUses) Sets a list ofOneTimeUse
void
Sets a list ofProxyRestriction
Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
getNotOnOrAfter
Date getNotOnOrAfter()Returns the time instant at which the subject can no longer be confirmed.- Returns:
- the time instant at which the subject can no longer be confirmed.
-
setNotOnOrAfter
Sets the time instant at which the subject can no longer be confirmed.- Parameters:
value
- the time instant at which the subject can no longer be confirmed.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable
-
getConditions
Returns a list ofCondition
- Returns:
- a list of
Condition
-
getAudienceRestrictions
List<AudienceRestriction> getAudienceRestrictions()Returns a list ofAudienceRestriction
- Returns:
- a list of
AudienceRestriction
-
getOneTimeUses
List<OneTimeUse> getOneTimeUses()Returns a list ofOneTimeUse
- Returns:
- a list of
OneTimeUse
-
getProxyRestrictions
List<ProxyRestriction> getProxyRestrictions()Returns a list ofProxyRestriction
- Returns:
- a list of
ProxyRestriction
-
setConditions
Sets a list ofCondition
- Parameters:
conditions
- a list ofCondition
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable
-
setAudienceRestrictions
void setAudienceRestrictions(List<AudienceRestriction> ars) throws com.sun.identity.saml2.common.SAML2Exception Sets a list ofAudienceRestriction
- Parameters:
ars
- a list ofAudienceRestriction
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable
-
setOneTimeUses
void setOneTimeUses(List<OneTimeUse> oneTimeUses) throws com.sun.identity.saml2.common.SAML2Exception Sets a list ofOneTimeUse
- Parameters:
oneTimeUses
- a list ofOneTimeUse
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable
-
setProxyRestrictions
void setProxyRestrictions(List<ProxyRestriction> prs) throws com.sun.identity.saml2.common.SAML2Exception Sets a list ofProxyRestriction
- Parameters:
prs
- a list ofProxyRestriction
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable
-
getNotBefore
Date getNotBefore()Returns the time instant before which the subject cannot be confirmed.- Returns:
- the time instant before which the subject cannot be confirmed.
-
setNotBefore
Sets the time instant before which the subject cannot be confirmed.- Parameters:
value
- the time instant before which the subject cannot be confirmed.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable
-
checkDateValidity
boolean checkDateValidity(long someTime) Return true if a specific Date falls within the validity interval of this set of conditions.- Parameters:
someTime
- a time in milliseconds.- Returns:
- true if
someTime
is within the valid interval of theConditions
.
-
checkDateValidityWithSkew
boolean checkDateValidityWithSkew(long someTime, int skewTime) Return true if a specific Date falls within the validity interval of this set of conditions.- Parameters:
someTime
- a time in milliseconds.skewTime
- a skew time in seconds.- Returns:
- true if
someTime
is within the valid interval of theConditions
.
-
makeImmutable
void makeImmutable()Makes the object immutable -
isMutable
boolean isMutable()Returns true if the object is mutable- Returns:
- true if the object is mutable
-