Package com.sun.identity.policy
Class PolicyDecision
- java.lang.Object
-
- com.sun.identity.policy.PolicyDecision
-
@Deprecated public class PolicyDecision extends Object
Deprecated.since 12.0.0ThePolicyDecisionclass represents the result of a policy evaluation.
-
-
Constructor Summary
Constructors Constructor Description PolicyDecision()Deprecated.Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddActionDecision(ActionDecision actionDecision)Deprecated.Adds an action decision to this object if there is already an existing actionDecision associated with the action name in the paramactionDecision, merges the values of the new decision with the existing one, changing the time to live for the decision appropriately.voidaddActionDecision(ActionDecision newActionDecision, String trueValue, String falseValue)Deprecated.Add anActionDecisionto thePolicyDecisionusing the providedtrueValueandfalseValueThese are the rules followed to add action decision: Boolean false value overrides boolean true value.Objectclone()Deprecated.Makes a copy of this objectMapgetActionDecisions()Deprecated.Gets theMapof action decisions associated with this policy decision.MapgetResponseAttributes()Deprecated.Gets response attributes associated with this policy decision.MapgetResponseDecisions()Deprecated.Gets response decisions associated with this policy decisionlonggetTimeToLive()Deprecated.Gets the GMT time in milliseconds since epoch when this object is to be treated as expired.booleanhasAdvices()Deprecated.Checks wether advices are set in this objectstatic PolicyDecisionparsePolicyDecision(Node policyDecisionNode)Deprecated.Gets a PolicyDecision given corresponding XML nodevoidsetResponseAttributes(Map responseAttributes)Deprecated.Sets response attributes associated with this policy decisionvoidsetResponseDecisions(Map responseDecisions)Deprecated.Sets response decisions associated with this policy decisionStringtoString()Deprecated.Gets a String representation of thisPolicyDecisionStringtoXML()Deprecated.Gets an XML representation of this object
-
-
-
Method Detail
-
getActionDecisions
public Map getActionDecisions()
Deprecated.Gets theMapof action decisions associated with this policy decision. The action name is the key to the Map. The value for each key is anActionDecision.- Returns:
- the
Mapof action decisions associated with this policy decision. The action name is the key to the Map. The value for each key is anActionDecision.
-
addActionDecision
public void addActionDecision(ActionDecision newActionDecision, String trueValue, String falseValue)
Deprecated.Add anActionDecisionto thePolicyDecisionusing the providedtrueValueandfalseValueThese are the rules followed to add action decision: Boolean false value overrides boolean true value. The time to live of boolean false value overrides the time to live of boolean true value. Otherwise, action values are simply aggregated. Time to live is set to the minimum of time to live(s) of all values of the action.- Parameters:
newActionDecision- anActionDecisionto be added.trueValue-Stringrepresenting the true value in the action schema.falseValue-Stringrepresenting the false value in the action schema.
-
addActionDecision
public void addActionDecision(ActionDecision actionDecision)
Deprecated.Adds an action decision to this object if there is already an existing actionDecision associated with the action name in the paramactionDecision, merges the values of the new decision with the existing one, changing the time to live for the decision appropriately.- Parameters:
actionDecision- action decision to be added
-
toString
public String toString()
Deprecated.Gets a String representation of thisPolicyDecision
-
toXML
public String toXML()
Deprecated.Gets an XML representation of this object- Returns:
- an XML representation of this object
-
parsePolicyDecision
public static PolicyDecision parsePolicyDecision(Node policyDecisionNode) throws PolicyException
Deprecated.Gets a PolicyDecision given corresponding XML node- Parameters:
policyDecisionNode- XML node for the policy decision- Returns:
- policy decision based on the XML node
- Throws:
PolicyException
-
getResponseDecisions
public Map getResponseDecisions()
Deprecated.Gets response decisions associated with this policy decision- Returns:
Maprepresenting the response decisions associated with this policy decision
-
setResponseDecisions
public void setResponseDecisions(Map responseDecisions)
Deprecated.Sets response decisions associated with this policy decision- Parameters:
responseDecisions- AMaprepresenting response decisions associated with this policy decision
-
getResponseAttributes
public Map getResponseAttributes()
Deprecated.Gets response attributes associated with this policy decision. Response attributes are computed as an aggregation of the returnMap(s) of theResponseProviderobjects associated with the policy obtained via the getResponseDecision() call.- Returns:
- the
Mapof response attributes associated with this policy decision.
-
setResponseAttributes
public void setResponseAttributes(Map responseAttributes)
Deprecated.Sets response attributes associated with this policy decision- Parameters:
responseAttributes-Mapof attribute value pairs associated with this policy decision.
-
clone
public Object clone()
Deprecated.Makes a copy of this object
-
getTimeToLive
public long getTimeToLive()
Deprecated.Gets the GMT time in milliseconds since epoch when this object is to be treated as expired. That is the policy decision would likely be different after that time. This is computed as a result ofSimpleTimeConditions specified in thePolicydefinition.- Returns:
- time to live
-
hasAdvices
public boolean hasAdvices()
Deprecated.Checks wether advices are set in this object- Returns:
true, if advices are set, elsefalse
-
-