public interface Conditions
Conditions
defines the SAML constructs that place
constraints on the acceptable use if SAML Assertion
s.Modifier and Type | Method and Description |
---|---|
boolean |
checkDateValidity(long someTime)
Return true if a specific Date falls within the validity
interval of this set of conditions.
|
boolean |
checkDateValidity(long someTime,
int skew)
Return true if a specific Date falls within the validity
interval of this set of conditions.
|
List |
getAudienceRestrictions()
Returns a list of
AudienceRestriction |
List |
getConditions()
Returns a list of
Condition |
Date |
getNotBefore()
Returns the time instant before which the subject cannot be confirmed.
|
Date |
getNotOnOrAfter()
Returns the time instant at which the subject can no longer
be confirmed.
|
List |
getOneTimeUses()
Returns a list of
OneTimeUse |
List |
getProxyRestrictions()
Returns a list of
ProxyRestriction |
boolean |
isMutable()
Returns true if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setAudienceRestrictions(List ars)
Sets a list of
AudienceRestriction |
void |
setConditions(List conditions)
Sets a list of
Condition |
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 oneTimeUses)
Sets a list of
OneTimeUse |
void |
setProxyRestrictions(List prs)
Sets a list of
ProxyRestriction |
String |
toXMLString()
Returns a String representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
Date getNotOnOrAfter()
void setNotOnOrAfter(Date value) throws SAML2Exception
value
- the time instant at which the subject can no longer
be confirmed.SAML2Exception
- if the object is immutableList getConditions()
Condition
Condition
List getAudienceRestrictions()
AudienceRestriction
AudienceRestriction
List getOneTimeUses()
OneTimeUse
OneTimeUse
List getProxyRestrictions()
ProxyRestriction
ProxyRestriction
void setConditions(List conditions) throws SAML2Exception
Condition
conditions
- a list of Condition
SAML2Exception
- if the object is immutablevoid setAudienceRestrictions(List ars) throws SAML2Exception
AudienceRestriction
ars
- a list of AudienceRestriction
SAML2Exception
- if the object is immutablevoid setOneTimeUses(List oneTimeUses) throws SAML2Exception
OneTimeUse
oneTimeUses
- a list of OneTimeUse
SAML2Exception
- if the object is immutablevoid setProxyRestrictions(List prs) throws SAML2Exception
ProxyRestriction
prs
- a list of ProxyRestriction
SAML2Exception
- if the object is immutableDate getNotBefore()
void setNotBefore(Date value) throws SAML2Exception
value
- the time instant before which the subject cannot
be confirmed.SAML2Exception
- if the object is immutableboolean checkDateValidity(long someTime)
someTime
- a time in milliseconds.someTime
is within the valid
interval of the Conditions
.boolean checkDateValidity(long someTime, int skew)
someTime
- a time in milliseconds.skew
- allowed clock skew in seconds.someTime
is within the valid
interval of the Conditions
.String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
includeNSPrefix
- Determines whether or not the namespace
qualifier is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.SAML2Exception
- if something is wrong during conversionString toXMLString() throws SAML2Exception
SAML2Exception
- if something is wrong during conversionvoid makeImmutable()
boolean isMutable()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.