Package com.sun.identity.policy
Class ActionDecision
- java.lang.Object
-
- com.sun.identity.policy.ActionDecision
-
@Deprecated public class ActionDecision extends Object
Deprecated.since 12.0.0TheActionDecisionclass represents the action results of a policy evaluation. It has action values for a givenactionandadvice.
-
-
Constructor Summary
Constructors Constructor Description ActionDecision()Deprecated.No replacement API provided.ActionDecision(String actionName, Set values)Deprecated.ConstructorActionDecision(String actionName, Set values, Map advices, long timeToLive)Deprecated.Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Objectclone()Deprecated.Creates and returns a copy of this object.StringgetActionName()Deprecated.Gets the name of the actionMapgetAdvices()Deprecated.Returns aMapofadvicesassociated with this object.longgetTimeToLive()Deprecated.Gets the GMT time in milliseconds since epoch when this object is to be treated as expired.SetgetValues()Deprecated.Gets the action values for the action.static ActionDecisionparseActionDecision(Node actionDecisionNode)Deprecated.Creates an ActionDecisions object given a w3c DOM nodevoidsetAdvices(Map advices)Deprecated.Setsadvicesassociated with thisActionDecision.static voidsetClientClockSkew(long skew)Deprecated.Sets the client clock skewvoidsetTimeToLive(long timeToLive)Deprecated.Sets the GMT time in milliseconds since epoch when this object is to be treated as expired.voidsetValues(Set values)Deprecated.Sets the action values for the action.StringtoString()Deprecated.Gets a String representation of this objectStringtoXML()Deprecated.Gets an XML representation of this object
-
-
-
Constructor Detail
-
ActionDecision
public ActionDecision()
Deprecated.No replacement API provided. There should be no need to invoke this constructor.No argument constructor
-
ActionDecision
public ActionDecision(String actionName, Set values)
Deprecated.Constructor- Parameters:
actionName- name of the action.values- aSet>ofStringvalues for the action
-
ActionDecision
public ActionDecision(String actionName, Set values, Map advices, long timeToLive)
Deprecated.Constructor- Parameters:
actionName- action namevalues- aSetofStringvalues for the actionadvices-advicesassociated 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.timeToLive- the GMT time in milliseconds since epoch when this object is to be treated as expired. That is the action values would likely be different after that time.
-
-
Method Detail
-
getActionName
public String getActionName()
Deprecated.Gets the name of the action- Returns:
- name of the action
-
setValues
public void setValues(Set values)
Deprecated.Sets the action values for the action.- Parameters:
values- aSetof String values
-
getValues
public Set getValues()
Deprecated.Gets the action values for the action.- Returns:
- a
Set>/code> of String values
-
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 action values would likely be different after that time. This is computed as a result ofSimpleTimeCondition(s)specified in the Policy definition.- Returns:
- long represeting the time to live for this object.
-
setTimeToLive
public void setTimeToLive(long timeToLive)
Deprecated.Sets the GMT time in milliseconds since epoch when this object is to be treated as expired. That is the action values would likely be different after that time. This is computed as a result ofSimpleTimeCondition(s)specified in the Policy definition.- Parameters:
timeToLive- time to live
-
setAdvices
public void setAdvices(Map advices)
Deprecated.Setsadvicesassociated with thisActionDecision. The advice name is the key to theMap. The value is aSetof advice message Strings corresponding to the advice name. The two possible advices are authentication level(AuthLevel) and authentication modules (AuthSchemes). The advice message Strings forAuthLevelare integer valued.- Parameters:
advices- map of advices
-
getAdvices
public Map getAdvices()
Deprecated.Returns aMapofadvicesassociated with this object. The advice name is the key to theMap. The value is aSetof advice message Strings corresponding to the advice name. The two possible advices are authentication level(AuthLevel) and authentication modules (AuthSchemes). The advice message Strings forAuthLevelare integer valued.- Returns:
- advices associated with this
ActionDecision.
-
toString
public String toString()
Deprecated.Gets a String representation of this object
-
toXML
public String toXML()
Deprecated.Gets an XML representation of this object- Returns:
- XML representation of this object
-
parseActionDecision
public static ActionDecision parseActionDecision(Node actionDecisionNode) throws PolicyException
Deprecated.Creates an ActionDecisions object given a w3c DOM node- Parameters:
actionDecisionNode- w3c DOM node for action decision- Returns:
- ActionDecisions object created using the w3c DOM node
- Throws:
PolicyException- if any error occurs during parsing.
-
clone
public Object clone()
Deprecated.Creates and returns a copy of this object.
-
setClientClockSkew
public static void setClientClockSkew(long skew)
Deprecated.Sets the client clock skew- Parameters:
skew- the time skew in milliseconds, serverTime - clientTime
-
-