Package com.sun.identity.saml2.assertion
Interface Conditions
-
- All Known Implementing Classes:
ConditionsImpl
public interface ConditionsTheConditionsdefines the SAML constructs that place constraints on the acceptable use if SAMLAssertions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckDateValidity(long someTime)Return true if a specific Date falls within the validity interval of this set of conditions.booleancheckDateValidity(long someTime, int skew)Return true if a specific Date falls within the validity interval of this set of conditions.ListgetAudienceRestrictions()Returns a list ofAudienceRestrictionListgetConditions()Returns a list ofConditionDategetNotBefore()Returns the time instant before which the subject cannot be confirmed.DategetNotOnOrAfter()Returns the time instant at which the subject can no longer be confirmed.ListgetOneTimeUses()Returns a list ofOneTimeUseListgetProxyRestrictions()Returns a list ofProxyRestrictionbooleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetAudienceRestrictions(List ars)Sets a list ofAudienceRestrictionvoidsetConditions(List conditions)Sets a list ofConditionvoidsetNotBefore(Date value)Sets the time instant before which the subject cannot be confirmed.voidsetNotOnOrAfter(Date value)Sets the time instant at which the subject can no longer be confirmed.voidsetOneTimeUses(List oneTimeUses)Sets a list ofOneTimeUsevoidsetProxyRestrictions(List prs)Sets a list ofProxyRestrictionStringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Method Detail
-
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
void setNotOnOrAfter(Date value) throws SAML2Exception
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:
SAML2Exception- if the object is immutable
-
getConditions
List getConditions()
Returns a list ofCondition- Returns:
- a list of
Condition
-
getAudienceRestrictions
List getAudienceRestrictions()
Returns a list ofAudienceRestriction- Returns:
- a list of
AudienceRestriction
-
getOneTimeUses
List getOneTimeUses()
Returns a list ofOneTimeUse- Returns:
- a list of
OneTimeUse
-
getProxyRestrictions
List getProxyRestrictions()
Returns a list ofProxyRestriction- Returns:
- a list of
ProxyRestriction
-
setConditions
void setConditions(List conditions) throws SAML2Exception
Sets a list ofCondition- Parameters:
conditions- a list ofCondition- Throws:
SAML2Exception- if the object is immutable
-
setAudienceRestrictions
void setAudienceRestrictions(List ars) throws SAML2Exception
Sets a list ofAudienceRestriction- Parameters:
ars- a list ofAudienceRestriction- Throws:
SAML2Exception- if the object is immutable
-
setOneTimeUses
void setOneTimeUses(List oneTimeUses) throws SAML2Exception
Sets a list ofOneTimeUse- Parameters:
oneTimeUses- a list ofOneTimeUse- Throws:
SAML2Exception- if the object is immutable
-
setProxyRestrictions
void setProxyRestrictions(List prs) throws SAML2Exception
Sets a list ofProxyRestriction- Parameters:
prs- a list ofProxyRestriction- Throws:
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
void setNotBefore(Date value) throws SAML2Exception
Sets the time instant before which the subject cannot be confirmed.- Parameters:
value- the time instant before which the subject cannot be confirmed.- Throws:
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
someTimeis within the valid interval of theConditions.
-
checkDateValidity
boolean checkDateValidity(long someTime, int skew)Return true if a specific Date falls within the validity interval of this set of conditions.- Parameters:
someTime- a time in milliseconds.skew- allowed clock skew in seconds.- Returns:
- true if
someTimeis within the valid interval of theConditions.
-
toXMLString
String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Parameters:
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.- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
String toXMLString() throws SAML2Exception
Returns a String representation- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
void makeImmutable()
Makes the object immutable
-
isMutable
boolean isMutable()
Returns true if the object is mutable- Returns:
- true if the object is mutable
-
-