com.sun.identity.policy
クラス ConditionDecision

java.lang.Object
  上位を拡張 com.sun.identity.policy.ConditionDecision

public class ConditionDecision
extends Object

The ConditionDecision class represents the result of the evaluation of a condition.


コンストラクタの概要
ConditionDecision()
          No argument constructor
ConditionDecision(boolean allowed)
          Constructs ConditionDecision given the boolean result of a condition evaluation
ConditionDecision(boolean allowed, long timeToLive)
          Constructs ConditionDecision given the boolean result of a condition evaluation and time to live
ConditionDecision(boolean allowed, long timeToLive, Map advices)
          Constructs ConditionDecision given the boolean result of a condition evaluation, time to live and advices
ConditionDecision(boolean allowed, Map advices)
          Constructs ConditionDecision given the boolean result of a condition evaluation and advices
 
メソッドの概要
 Map getAdvices()
          Gets advices associated with this object
 long getTimeToLive()
          Gets timeToLive associated with this object
 boolean isAllowed()
          Gets boolean result of condition evaluation
 void setAdvices(Map advices)
          Sets advices associated with this object
 void setAllowed(boolean allowed)
          Sets boolean result of condition evaluation
 void setTimeToLive(long timeToLive)
          Sets timeToLive associated with this object
 

コンストラクタの詳細

ConditionDecision

public ConditionDecision()
No argument constructor


ConditionDecision

public ConditionDecision(boolean allowed)
Constructs ConditionDecision given the boolean result of a condition evaluation

パラメータ:
allowed - boolean result of a condition evaluation

ConditionDecision

public ConditionDecision(boolean allowed,
                         Map advices)
Constructs ConditionDecision given the boolean result of a condition evaluation and advices

パラメータ:
allowed - boolean result of a condition evaluation
advices - A Map representing advices associated with this ConditionDecision. The advice name is the key to the Map. The value is a Set of advice message Strings corresponding to the advice name. The advice name examples are SessionCondition.SESSION_CONDITION_ADVICE AuthSchemeCondition.AUTH_SCHEME_CONDITION_ADVICE

ConditionDecision

public ConditionDecision(boolean allowed,
                         long timeToLive)
Constructs ConditionDecision given the boolean result of a condition evaluation and time to live

パラメータ:
allowed - boolean result of a condition evaluation
timeToLive - GMT time in milliseconds since epoch when this object is to be treated as expired.

ConditionDecision

public ConditionDecision(boolean allowed,
                         long timeToLive,
                         Map advices)
Constructs ConditionDecision given the boolean result of a condition evaluation, time to live and advices

パラメータ:
allowed - boolean result of a condition evaluation
timeToLive - GMT time in milliseconds since epoch when this object is to be treated as expired.
advices - advices associated with this action decision. The advice name is the key to the Map. The value is a set of advice message Strings corresponding to the advice name. The advice name examples are SessionCondition.SESSION_CONDITION_ADVICE AuthSchemeCondition.AUTH_SCHEME_CONDITION_ADVICE
メソッドの詳細

setAllowed

public void setAllowed(boolean allowed)
Sets boolean result of condition evaluation

パラメータ:
allowed - boolean result of condition evaluation

isAllowed

public boolean isAllowed()
Gets boolean result of condition evaluation

戻り値:
result of condition evaluation

setAdvices

public void setAdvices(Map advices)
Sets advices associated with this object

パラメータ:
advices - A Map representing advices associated with this object. The advice name is the key to the Map. The value is a Set of advice message Strings corresponding to the advice name. The advice name examples are SessionCondition.SESSION_CONDITION_ADVICE AuthSchemeCondition.AUTH_SCHEME_CONDITION_ADVICE

getAdvices

public Map getAdvices()
Gets advices associated with this object

戻り値:
advices associated with this object. The advice name is the key to the Map. The value is a Set of advice message Strings corresponding to the advice name.

setTimeToLive

public void setTimeToLive(long timeToLive)
Sets timeToLive associated with this object

パラメータ:
timeToLive - GMT time in milliseconds since epoch when this object is to be treated as expired.

getTimeToLive

public long getTimeToLive()
Gets timeToLive associated with this object

戻り値:
GMT time in milliseconds since epoch when this object is to be treated as expired.