com.sun.identity.saml2.assertion
インタフェース Conditions


public interface Conditions

The Conditions defines the SAML constructs that place constraints on the acceptable use if SAML Assertions.


メソッドの概要
 boolean checkDateValidity(long someTime)
          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
 

メソッドの詳細

getNotOnOrAfter

Date getNotOnOrAfter()
Returns the time instant at which the subject can no longer be confirmed.

戻り値:
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.

パラメータ:
value - the time instant at which the subject can no longer be confirmed.
例外:
SAML2Exception - if the object is immutable

getConditions

List getConditions()
Returns a list of Condition

戻り値:
a list of Condition

getAudienceRestrictions

List getAudienceRestrictions()
Returns a list of AudienceRestriction

戻り値:
a list of AudienceRestriction

getOneTimeUses

List getOneTimeUses()
Returns a list of OneTimeUse

戻り値:
a list of OneTimeUse

getProxyRestrictions

List getProxyRestrictions()
Returns a list of ProxyRestriction

戻り値:
a list of ProxyRestriction

setConditions

void setConditions(List conditions)
                   throws SAML2Exception
Sets a list of Condition

パラメータ:
conditions - a list of Condition
例外:
SAML2Exception - if the object is immutable

setAudienceRestrictions

void setAudienceRestrictions(List ars)
                             throws SAML2Exception
Sets a list of AudienceRestriction

パラメータ:
ars - a list of AudienceRestriction
例外:
SAML2Exception - if the object is immutable

setOneTimeUses

void setOneTimeUses(List oneTimeUses)
                    throws SAML2Exception
Sets a list of OneTimeUse

パラメータ:
oneTimeUses - a list of OneTimeUse
例外:
SAML2Exception - if the object is immutable

setProxyRestrictions

void setProxyRestrictions(List prs)
                          throws SAML2Exception
Sets a list of ProxyRestriction

パラメータ:
prs - a list of ProxyRestriction
例外:
SAML2Exception - if the object is immutable

getNotBefore

Date getNotBefore()
Returns the time instant before which the subject cannot be confirmed.

戻り値:
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.

パラメータ:
value - the time instant before which the subject cannot be confirmed.
例外:
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.

パラメータ:
someTime - a time in milliseconds.
戻り値:
true if someTime is within the valid interval of the Conditions.

toXMLString

String toXMLString(boolean includeNSPrefix,
                   boolean declareNS)
                   throws SAML2Exception
Returns a String representation

パラメータ:
includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - Determines whether or not the namespace is declared within the Element.
戻り値:
A String representation
例外:
SAML2Exception - if something is wrong during conversion

toXMLString

String toXMLString()
                   throws SAML2Exception
Returns a String representation

戻り値:
A String representation
例外:
SAML2Exception - if something is wrong during conversion

makeImmutable

void makeImmutable()
Makes the object immutable


isMutable

boolean isMutable()
Returns true if the object is mutable

戻り値:
true if the object is mutable