Class ConditionDecision

java.lang.Object
com.sun.identity.policy.ConditionDecision

@SupportedAll @Deprecated public class ConditionDecision extends Object
Deprecated.
As of OpenSSO Express 8.0, use com.sun.identity.entitlement instead as Entitlement has replaced Policy.
The ConditionDecision class represents the result of the evaluation of a condition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    No argument constructor
    ConditionDecision(boolean allowed)
    Deprecated.
    Constructs ConditionDecision given the boolean result of a condition evaluation
    ConditionDecision(boolean allowed, long timeToLive)
    Deprecated.
    Constructs ConditionDecision given the boolean result of a condition evaluation and time to live
    ConditionDecision(boolean allowed, long timeToLive, Map advices)
    Deprecated.
    Constructs ConditionDecision given the boolean result of a condition evaluation, time to live and advices
    ConditionDecision(boolean allowed, Map advices)
    Deprecated.
    Constructs ConditionDecision given the boolean result of a condition evaluation and advices
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets advices associated with this object
    long
    Deprecated.
    Gets timeToLive associated with this object
    boolean
    Deprecated.
    Gets boolean result of condition evaluation
    void
    setAdvices(Map advices)
    Deprecated.
    Sets advices associated with this object
    void
    setAllowed(boolean allowed)
    Deprecated.
    Sets boolean result of condition evaluation
    void
    setTimeToLive(long timeToLive)
    Deprecated.
    Sets timeToLive associated with this object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConditionDecision

      public ConditionDecision()
      Deprecated.
      No argument constructor
    • ConditionDecision

      public ConditionDecision(boolean allowed)
      Deprecated.
      Constructs ConditionDecision given the boolean result of a condition evaluation
      Parameters:
      allowed - boolean result of a condition evaluation
    • ConditionDecision

      public ConditionDecision(boolean allowed, Map advices)
      Deprecated.
      Constructs ConditionDecision given the boolean result of a condition evaluation and advices
      Parameters:
      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)
      Deprecated.
      Constructs ConditionDecision given the boolean result of a condition evaluation and time to live
      Parameters:
      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)
      Deprecated.
      Constructs ConditionDecision given the boolean result of a condition evaluation, time to live and advices
      Parameters:
      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
  • Method Details

    • setAllowed

      public void setAllowed(boolean allowed)
      Deprecated.
      Sets boolean result of condition evaluation
      Parameters:
      allowed - boolean result of condition evaluation
    • isAllowed

      public boolean isAllowed()
      Deprecated.
      Gets boolean result of condition evaluation
      Returns:
      result of condition evaluation
    • setAdvices

      public void setAdvices(Map advices)
      Deprecated.
      Sets advices associated with this object
      Parameters:
      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()
      Deprecated.
      Gets advices associated with this object
      Returns:
      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)
      Deprecated.
      Sets timeToLive associated with this object
      Parameters:
      timeToLive - GMT time in milliseconds since epoch when this object is to be treated as expired.
    • getTimeToLive

      public long getTimeToLive()
      Deprecated.
      Gets timeToLive associated with this object
      Returns:
      GMT time in milliseconds since epoch when this object is to be treated as expired.