Package com.sun.identity.policy
Class Policy
- java.lang.Object
-
- com.sun.identity.policy.Policy
-
- All Implemented Interfaces:
Cloneable
@Deprecated public class Policy extends Object implements Cloneable
Deprecated.since 12.0.0The classPolicyrepresents a policy definition. A policy contains a set of rules associated with a collection of users and conditions. The policy object is saved in the data store only when thestoremethod of thePolicyis called, or if the methodsaddPolicyorreplacePolicyofPolicyManagerinstance is invoked with this policy. ThePolicyobject is accessible to policy evaluation and enforcement points only after it is saved in data store.
-
-
Constructor Summary
Constructors Constructor Description Policy(PolicyManager pm, Node policyNode)Deprecated.Constructs a policy given the Policy Node.Policy(String policyName)Deprecated.Constructs a policy given the policy name.Policy(String policyName, String description)Deprecated.Constructs a policy given the policy name and description.Policy(String policyName, String description, boolean referralPolicy)Deprecated.Constructs a policy given the policy name,description and a referralPolicy flag.Policy(String policyName, String description, boolean referralPolicy, boolean active)Deprecated.Constructs a policy given the policy name , description, referralPolicy flag, and active flag
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCondition(String name, Condition condition)Deprecated.Adds a new policy condition.voidaddRealmSubject(SSOToken token, String subjectName, String realmName, boolean exclusive)Deprecated.Adds a reference in the policy to a Subject defined at the realm.voidaddRealmSubject(String subjectName, SubjectTypeManager stm, boolean exclusive)Deprecated.Adds a reference in the policy to a Subject defined at the realm.voidaddReferral(String name, Referral referral)Deprecated.Adds a new policy referral.voidaddResponseProvider(String name, ResponseProvider respProvider)Deprecated.Adds a newResponseProviderto the policy.voidaddRule(Rule rule)Deprecated.Adds a new policy rule.voidaddSubject(String name, Subject subject)Deprecated.Adds a new policy subject.voidaddSubject(String name, Subject subject, boolean exclusive)Deprecated.Adds a new policy subject.Objectclone()Deprecated.Creates and returns a copy of this object.booleanequals(Object obj)Deprecated.Checks if two policy objects are equal.ConditiongetCondition(String condition)Deprecated.Gets the condition object identified by name.SetgetConditionNames()Deprecated.Get the set of condition names associated with the policy.StringgetCreatedBy()Deprecated.Returns the user ID who created the policy.longgetCreationDate()Deprecated.Returns creation date.StringgetDescription()Deprecated.Gets the description for the policy.StringgetLastModifiedBy()Deprecated.Returns the user ID who last modified the policy.longgetLastModifiedDate()Deprecated.Returns last modified date.StringgetName()Deprecated.Gets the name of the policy.StringgetOrganizationName()Deprecated.Gets the organization name under which the policy is created This would be set only for policies that have been read from data store.protected StringgetOriginalName()Deprecated.Gets the original policy name.PolicyDecisiongetPolicyDecision(SSOToken token, String resourceTypeName, String resourceName, Set actionNames, Map envParameters)Deprecated.Gets policy decisionintgetPriority()Deprecated.Gets the priority of the policy.ReferralgetReferral(String referralName)Deprecated.Gets the Referral object identified by name.SetgetReferralNames()Deprecated.Get theSetof referral names associated with the policy.ResponseProvidergetResponseProvider(String respProvider)Deprecated.Gets theResponseProviderobject identified by name.SetgetResponseProviderNames()Deprecated.Get aSetofStringobjects representing the responseProvider names associated with the policy.RulegetRule(String ruleName)Deprecated.Gets the rule object identified by name.SetgetRuleNames()Deprecated.Gets the set of rule names associated with the policy.SubjectgetSubject(String subjectName)Deprecated.Gets the Subject object identified by name.SetgetSubjectNames()Deprecated.Get theSetof subject names associated with the policy.booleanisActive()Deprecated.Checks whether the policy is active or inactive An inactive policy is not used to make policy evaluations.booleanisRealmSubject(String subjectName)Deprecated.Checks if the subjectName is a reference to a Subject defined at the realmbooleanisReferralPolicy()Deprecated.Checks whether the policy is a referral policy.booleanisSubjectExclusive(String subjectName)Deprecated.Checks if the subject is exclusive.voidremoveCondition(Condition condition)Deprecated.Removes theConditionobject identified by object'sequalsmethod.ConditionremoveCondition(String condition)Deprecated.Removes the condition with the given name.voidremoveReferral(Referral referral)Deprecated.Removes theReferralobject identified by object'sequalsmethod.ReferralremoveReferral(String referralName)Deprecated.Removes the referral with the given name.voidremoveResponseProvider(ResponseProvider respProvider)Deprecated.Removes theResponseProviderobject.ResponseProviderremoveResponseProvider(String respProvider)Deprecated.Removes theResponseProviderwith the given name.RuleremoveRule(String ruleName)Deprecated.Removes theRulewith the given name.voidremoveSubject(Subject subject)Deprecated.Removes theSubjectobject identified by object'sequalsmethod.SubjectremoveSubject(String subjectName)Deprecated.Removes the subject with the given name.voidreplaceCondition(String name, Condition condition)Deprecated.Replaces an existing condition with the same name by the current one.voidreplaceReferral(String name, Referral referral)Deprecated.Replaces an existing referral with the same name by the current one.voidreplaceResponseProvider(String name, ResponseProvider respProvider)Deprecated.Replaces an existingResponseProviderwith the same name by the current one.voidreplaceRule(Rule rule)Deprecated.Replaces an existing rule with the same name by the current one.voidreplaceSubject(String name, Subject subject)Deprecated.Replaces an existing subject with the same name by the current one.voidreplaceSubject(String name, Subject subject, boolean exclusive)Deprecated.Replaces an existing subject with the same name by the current one.protected voidresetOriginalName()Deprecated.Resets the original policy namevoidsetActive(boolean active)Deprecated.Set the active flag for policy.voidsetCreatedBy(String createdBy)Deprecated.Sets the user ID who created the policy.voidsetCreationDate(long creationDate)Deprecated.Sets the creation date.voidsetDescription(String description)Deprecated.Sets the description for the policy.voidsetLastModifiedBy(String lastModifiedBy)Deprecated.Sets the user ID who last modified the policy.voidsetLastModifiedDate(long lastModifiedDate)Deprecated.Sets the last modified date.voidsetName(String policyName)Deprecated.Sets the name of the policy.voidsetPriority(int priority)Deprecated.Sets a priority of the policy.voidstore(SSOToken token, String name)Deprecated.Stores the policy object in a persistent data store under the organization, sub-organization or a container object, specified as a parameter.StringtoString()Deprecated.Gets string representation of the policy object.StringtoXML()Deprecated.Returns the serialized policy in XMLStringtoXML(boolean withHeader)Deprecated.
-
-
-
Constructor Detail
-
Policy
public Policy(String policyName) throws InvalidNameException
Deprecated.Constructs a policy given the policy name.- Parameters:
policyName- name of the policy- Throws:
InvalidNameException- if policy name is not valid
-
Policy
public Policy(String policyName, String description) throws InvalidNameException
Deprecated.Constructs a policy given the policy name and description.- Parameters:
policyName- name of the policydescription- description for the policy- Throws:
InvalidNameException- if policy name is not valid
-
Policy
public Policy(String policyName, String description, boolean referralPolicy) throws InvalidNameException
Deprecated.Constructs a policy given the policy name,description and a referralPolicy flag.- Parameters:
policyName- name of the policydescription- description for the policyreferralPolicy- indicates whether the policy is a referral policy or a standard policy. A referral policy is used only to delegate policy definitions to sub/peer organizations. A referral policy does not make use of any action values- Throws:
InvalidNameException- if policy name is not valid
-
Policy
public Policy(String policyName, String description, boolean referralPolicy, boolean active) throws InvalidNameException
Deprecated.Constructs a policy given the policy name , description, referralPolicy flag, and active flag- Parameters:
policyName- name of the policydescription- description for the policyreferralPolicy- indicates whether the policy is a referral policy or a standard policy.active- indicates if the policy is active or not. A referral policy is used only to delegate policy definitions to sub/peer organizations. A referral policy does not make use of any action values- Throws:
InvalidNameException- if policy name is not valid
-
Policy
public Policy(PolicyManager pm, Node policyNode) throws InvalidFormatException, InvalidNameException, NameNotFoundException, PolicyException
Deprecated.Constructs a policy given the Policy Node. This is used by PolicyManager- Parameters:
pm-PolicyManagerrequesting the operationpolicyNode- XML node in W3C DOM format representing the policy object which needs to be created.- Throws:
InvalidFormatExceptionInvalidNameExceptionNameNotFoundExceptionPolicyException
-
-
Method Detail
-
getName
public String getName()
Deprecated.Gets the name of the policy.- Returns:
- name of the policy
-
setName
public void setName(String policyName) throws InvalidNameException
Deprecated.Sets the name of the policy.- Parameters:
policyName- name of the policy.- Throws:
InvalidNameException- ifpolicyNameis an invalid name.
-
getOriginalName
protected String getOriginalName()
Deprecated.Gets the original policy name. This is used to track policies called viaPolicyManager::replacePolicy()with the changed policy name.- Returns:
- the policy name that was present when the object was instantiated
-
getOrganizationName
public String getOrganizationName()
Deprecated.Gets the organization name under which the policy is created This would be set only for policies that have been read from data store. Otherwise this would benull- Returns:
- the organization name under which the policy is created
-
resetOriginalName
protected void resetOriginalName()
Deprecated.Resets the original policy name
-
getDescription
public String getDescription()
Deprecated.Gets the description for the policy. If the description for the policy has not been set the method will return an empty string; notnull.- Returns:
- description of the policy
-
setDescription
public void setDescription(String description) throws InvalidNameException
Deprecated.Sets the description for the policy.- Parameters:
description- description for the policy- Throws:
InvalidNameException- if the description is invalid
-
isReferralPolicy
public boolean isReferralPolicy()
Deprecated.Checks whether the policy is a referral policy. A referral policy is used only to delegate policy definitions to sub/peer organizations. A referral policy does not make use of any action values- Returns:
trueif this is a referral policy. Otherwise returnsfalse
-
isActive
public boolean isActive()
Deprecated.Checks whether the policy is active or inactive An inactive policy is not used to make policy evaluations.- Returns:
trueif this is an active policy. Otherwise returnsfalse
-
setActive
public void setActive(boolean active)
Deprecated.Set the active flag for policy. An inactive policy is not used to make policy evaluations.- Parameters:
active-booleanrepresenting active or inactive.
-
getPriority
public int getPriority()
Deprecated.Gets the priority of the policy.- Returns:
- priority of the policy
-
setPriority
public void setPriority(int priority)
Deprecated.Sets a priority of the policy.- Parameters:
priority- priority of the policy
-
getRuleNames
public Set getRuleNames()
Deprecated.Gets the set of rule names associated with the policy.- Returns:
Setof rule names
-
getRule
public Rule getRule(String ruleName) throws NameNotFoundException
Deprecated.Gets the rule object identified by name.- Parameters:
ruleName- name of rule.- Returns:
Ruleobject.- Throws:
NameNotFoundException- if aRulewith the given name does not exist
-
addRule
public void addRule(Rule rule) throws NameAlreadyExistsException, InvalidNameException
Deprecated.Adds a new policy rule.- Parameters:
rule- rule object to be added to the policy- Throws:
NameAlreadyExistsException- a rule with the given name already existsInvalidNameException- if the rule name is invalid same service name as the policy
-
replaceRule
public void replaceRule(Rule rule) throws InvalidNameException
Deprecated.Replaces an existing rule with the same name by the current one. If aRulewith the same name does not exist, it will be added.- Parameters:
rule-Rulethat will replace an existing rule with the same name- Throws:
InvalidNameException- ifRulename is invalid
-
removeRule
public Rule removeRule(String ruleName)
Deprecated.Removes theRulewith the given name.- Parameters:
ruleName- name of the rule- Returns:
- returns the
Ruleobject being removed; if not present returnsnull
-
getSubjectNames
public Set getSubjectNames()
Deprecated.Get theSetof subject names associated with the policy.- Returns:
Setof String objects representing subject names
-
getSubject
public Subject getSubject(String subjectName) throws NameNotFoundException
Deprecated.Gets the Subject object identified by name.- Parameters:
subjectName- name of subject.- Returns:
Subjectobject- Throws:
NameNotFoundException- if a Subject with the given name does not exist
-
addSubject
public void addSubject(String name, Subject subject) throws NameAlreadyExistsException, InvalidNameException
Deprecated.Adds a new policy subject. The subject is added as a normal (non exclusive) subject. So, policy will apply to members of the subject. The policy will apply to a user if he is a member of any normal (non exclusive) subject in the policy or not a member of any exclusive subject in the policy.- Parameters:
name- name of the Subject instancesubject- Subject object to be added to the policy- Throws:
NameAlreadyExistsException- if a Subject with the given name already existsInvalidNameException- if the subject name is invalid
-
addRealmSubject
public void addRealmSubject(SSOToken token, String subjectName, String realmName, boolean exclusive) throws NameAlreadyExistsException, InvalidNameException, PolicyException, SSOException
Deprecated.Adds a reference in the policy to a Subject defined at the realm.- Parameters:
token- SSOToken of the user adding the subjectsubjectName- name of the Subject as defined at the realmrealmName- name of the realm in which the subject is defined- Throws:
NameAlreadyExistsException- if a Subject with the given name already exists in the policyInvalidNameException- if the subject name is invalid or the subject is not found at the realmSSOException- if the SSO token is invalidPolicyException- if the subject could not be added for any other reason
-
addRealmSubject
public void addRealmSubject(String subjectName, SubjectTypeManager stm, boolean exclusive) throws NameAlreadyExistsException, InvalidNameException, PolicyException, SSOException
Deprecated.Adds a reference in the policy to a Subject defined at the realm.- Parameters:
subjectName- name of the Subject as defined at the realmstm-SubjectTypeManagerof the realm. You have to pass the SubjectTypeManager of realm in which you would save the policy. Trying to save the policy at a different realm would throw PolicyException.- Throws:
NameAlreadyExistsException- if a Subject with the given name already exists in the policyInvalidNameException- if the subject name is invalid or the subject is not found at the realmSSOException- if the SSO token is invalidPolicyException- if the subject could not be added for any other reason
-
addSubject
public void addSubject(String name, Subject subject, boolean exclusive) throws NameAlreadyExistsException, InvalidNameException
Deprecated.Adds a new policy subject. The policy will apply to a user if he is a member of any normal (non exclusive) subject in the policy or not a member of any exclusive subject in the policy.- Parameters:
name- name of the Subject instancesubject- Subject object to be added to the policyexclusive- boolean flag indicating whether the subject is to be exclusive subject. If subject is exclusive, policy applies to users who are not members of the subject. Otherwise, policy applies to members of the subject.- Throws:
NameAlreadyExistsException- if a Subject with the given name already existsInvalidNameException- if the subject name is invalid
-
replaceSubject
public void replaceSubject(String name, Subject subject) throws NameNotFoundException
Deprecated.Replaces an existing subject with the same name by the current one. If a subject with the same name does not exist, it will be added. The subject is replaced as a normal (non exclusive) subject. So, policy will apply to members of the subject. The policy will apply to a user if he is a member of any normal (non exclusive) subject subject in the policy or not a member of any exclusive subject subject in the policy.- Parameters:
name- name of the Subject instancesubject- Subject that will replace an existing Subject with the same name- Throws:
NameNotFoundException- if a Subject instance with the given name is not present
-
replaceSubject
public void replaceSubject(String name, Subject subject, boolean exclusive) throws NameNotFoundException
Deprecated.Replaces an existing subject with the same name by the current one. If a subject with the same name does not exist, it will be added. The policy will apply to a user if he is a member of any normal (non exclusive) subject in the policy or not a member of any exclusive subject in the policy.- Parameters:
name- name of the Subject instancesubject- Subject that will replace an existing Subject with the same nameexclusive- boolean flag indicating whether the subject is to be exclusive subject. If subject is exclusive, policy applies to users who are not members of the subject. Otherwise, policy applies to members of the subject.- Throws:
NameNotFoundException- if a Subject instance with the given name is not present
-
removeSubject
public Subject removeSubject(String subjectName)
Deprecated.Removes the subject with the given name.- Parameters:
subjectName- name of the Subject- Returns:
- returns the Subject object being removed.
if not present returns
null
-
removeSubject
public void removeSubject(Subject subject)
Deprecated.Removes theSubjectobject identified by object'sequalsmethod. If a Subject instance does not exist, the method will return silently.- Parameters:
subject- Subject object that will be removed from the user collection
-
isSubjectExclusive
public boolean isSubjectExclusive(String subjectName) throws NameNotFoundException
Deprecated.Checks if the subject is exclusive. If subject is exclusive, policy applies to users who are not members of the subject. Otherwise, policy applies to members of the subject. The policy will apply to a user if he is a member of any normal (non exclusive) subject in the policy or not a member of any exclusive subject in the policy.- Parameters:
subjectName- name of the subject- Returns:
trueif the subject is exclusive,falseotherwise.- Throws:
NameNotFoundException- if the subject with the givensubjectNamedoes not exist in the policy.
-
isRealmSubject
public boolean isRealmSubject(String subjectName) throws NameNotFoundException
Deprecated.Checks if the subjectName is a reference to a Subject defined at the realm- Parameters:
subjectName- name of the subject- Returns:
trueif the subject is a reference to a Subject defined at the realm,falseotherwise.- Throws:
NameNotFoundException- if the subject with the givensubjectNamedoes not exist in the policy.
-
getReferralNames
public Set getReferralNames()
Deprecated.Get theSetof referral names associated with the policy.- Returns:
Setof referral names
-
getReferral
public Referral getReferral(String referralName) throws NameNotFoundException
Deprecated.Gets the Referral object identified by name.- Parameters:
referralName- name of referral.- Returns:
Referralobject- Throws:
NameNotFoundException- if a Referral with the given name does not exist
-
addReferral
public void addReferral(String name, Referral referral) throws NameAlreadyExistsException, InvalidNameException
Deprecated.Adds a new policy referral.- Parameters:
name- name of theReferralinstancereferral-Referralobject to be added to the policy- Throws:
NameAlreadyExistsException- if a Referral with the given name already existsInvalidNameException- if the referral name is invalid
-
replaceReferral
public void replaceReferral(String name, Referral referral) throws NameNotFoundException
Deprecated.Replaces an existing referral with the same name by the current one. If a referral with the same name does not exist, it will be added.- Parameters:
name- name of theReferralinstancereferral-Referralthat will replace an existing Referral with the same name- Throws:
NameNotFoundException- if a Referral instance with the given name is not present
-
removeReferral
public Referral removeReferral(String referralName)
Deprecated.Removes the referral with the given name.- Parameters:
referralName- name of theReferral- Returns:
- returns the
Referralobject being removed; if not present returnsnull
-
removeReferral
public void removeReferral(Referral referral)
Deprecated.Removes theReferralobject identified by object'sequalsmethod. If a Referral instance does not exist, the method will return silently.- Parameters:
referral- Referral object that will be removed
-
getConditionNames
public Set getConditionNames()
Deprecated.Get the set of condition names associated with the policy.- Returns:
Setof condition names
-
getCondition
public Condition getCondition(String condition) throws NameNotFoundException
Deprecated.Gets the condition object identified by name.- Parameters:
condition- name of condition.- Returns:
Conditionobject.- Throws:
NameNotFoundException- if a Condition with the given name does not exist.
-
addCondition
public void addCondition(String name, Condition condition) throws NameAlreadyExistsException, InvalidNameException
Deprecated.Adds a new policy condition.- Parameters:
name- name of the Condition instancecondition- Condition object to be added to the policy- Throws:
NameAlreadyExistsException- if a Condition with the given name already existsInvalidNameException- if the condition name is invalid
-
replaceCondition
public void replaceCondition(String name, Condition condition) throws NameNotFoundException
Deprecated.Replaces an existing condition with the same name by the current one. If a condition with the same name does not exist, it will be added.- Parameters:
name- name of theConditioninstancecondition-Conditionthat will replace an existing Condition with the same name- Throws:
NameNotFoundException- if a Condition instance with the given name is not present
-
removeCondition
public Condition removeCondition(String condition)
Deprecated.Removes the condition with the given name.- Parameters:
condition- name of theCondition- Returns:
- returns the Condition object being removed;
if not present returns
null
-
removeCondition
public void removeCondition(Condition condition)
Deprecated.Removes theConditionobject identified by object'sequalsmethod. If a condition instance does not exist, the method will return silently.- Parameters:
condition- Condition object that will be removed
-
getResponseProviderNames
public Set getResponseProviderNames()
Deprecated.Get aSetofStringobjects representing the responseProvider names associated with the policy.- Returns:
Setof responseProvider names
-
getResponseProvider
public ResponseProvider getResponseProvider(String respProvider) throws NameNotFoundException
Deprecated.Gets theResponseProviderobject identified by name.- Parameters:
respProvider- name ofResponseProvider.- Returns:
ResponseProviderobject.- Throws:
NameNotFoundException- if a ResponseProvider with the given name does not exist.
-
addResponseProvider
public void addResponseProvider(String name, ResponseProvider respProvider) throws NameAlreadyExistsException
Deprecated.Adds a newResponseProviderto the policy.- Parameters:
name- name of theResponseProviderinstancerespProvider-ResponseProviderobject to be added to the policy- Throws:
NameAlreadyExistsException- if a ResponseProvider with the given name already existsInvalidNameException- if therespProvidername is invalid
-
replaceResponseProvider
public void replaceResponseProvider(String name, ResponseProvider respProvider) throws NameNotFoundException
Deprecated.Replaces an existingResponseProviderwith the same name by the current one. If a respProvider with the same name does not exist, it will be added.- Parameters:
name- name of the ResponseProvider instancerespProvider- ResponseProvider that will replace an existing ResponseProvider with the same name- Throws:
NameNotFoundException- if a ResponseProvider instance with the given name is not present.
-
removeResponseProvider
public ResponseProvider removeResponseProvider(String respProvider)
Deprecated.Removes theResponseProviderwith the given name.- Parameters:
respProvider- name of the ResponseProvider- Returns:
- returns the ResponseProvider object being removed; if not present returns null.
-
removeResponseProvider
public void removeResponseProvider(ResponseProvider respProvider)
Deprecated.Removes theResponseProviderobject. If a respProvider instance does not exist, the method will return silently.- Parameters:
respProvider- ResponseProvider object that will be removed
-
store
public void store(SSOToken token, String name) throws SSOException, NoPermissionException, NameAlreadyExistsException, NameNotFoundException, PolicyException
Deprecated.Stores the policy object in a persistent data store under the organization, sub-organization or a container object, specified as a parameter. The organization, sub-organization, or the container can be either a LDAP distinguished name (dn) or slash "/" separated as per SMS. This method uses theSSOTokenprovided to perform the store operation, and hence if the single sign token has expiredSSOExceptionwill be thrown, and if the user does not have the required privilegesNoPermissionExceptionexception will be thrown.If a policy with the same name exists for the organization the method will throw
NameAlreadyExistsException. And if the organization name does not exist, the method will throwNameNotFoundException.- Parameters:
token- SSO token of the user managing policyname- name of the organization, sub-organization or a container in which the policy will be stored.- Throws:
SSOException- invalid or expired single-sign-on tokenNoPermissionException- user does not have sufficient privileges to add policyNameAlreadyExistsException- a policy with the same name already existsNameNotFoundException- the given organization name does not existPolicyException- for any other abnormal condition
-
equals
public boolean equals(Object obj)
Deprecated.Checks if two policy objects are equal. This method does not check the policy name and description for equality.
-
clone
public Object clone()
Deprecated.Creates and returns a copy of this object. The returnedPolicyobject will have the same policy name, rules, subjects, referrals and conditions such thatx.clone().equals(x)will betrue. Howeverx.clone()will not be the same asx, i.e.,x.clone() != x.
-
toXML
public String toXML()
Deprecated.Returns the serialized policy in XML- Returns:
- serialized policy in XML
-
toXML
public String toXML(boolean withHeader)
Deprecated.
-
toString
public String toString()
Deprecated.Gets string representation of the policy object.
-
getPolicyDecision
public PolicyDecision getPolicyDecision(SSOToken token, String resourceTypeName, String resourceName, Set actionNames, Map envParameters) throws SSOException, NameNotFoundException, PolicyException
Deprecated.Gets policy decision- Parameters:
token- sso token identifying the user for who the policy has to be evaluated.resourceTypeName- resourceType nameresourceName- resourceNameactionNames- a set of action names for which policy results are to be evaluated. Each element of the set should be a StringenvParameters- aMapof environment parameters Each key of theMapis a String valued parameter name Each value of the map is aSetof String values- Returns:
- a
PolicyDecision - Throws:
NameNotFoundException- if the action name or resource name is not foundSSOException- if token is invalidPolicyException- for any other exception condition
-
getCreationDate
public long getCreationDate()
Deprecated.Returns creation date.- Returns:
- creation date.
-
setCreationDate
public void setCreationDate(long creationDate)
Deprecated.Sets the creation date.- Parameters:
creationDate- creation date.
-
getLastModifiedDate
public long getLastModifiedDate()
Deprecated.Returns last modified date.- Returns:
- last modified date.
-
setLastModifiedDate
public void setLastModifiedDate(long lastModifiedDate)
Deprecated.Sets the last modified date.- Parameters:
lastModifiedDate- last modified date.
-
getLastModifiedBy
public String getLastModifiedBy()
Deprecated.Returns the user ID who last modified the policy.- Returns:
- user ID who last modified the policy.
-
setLastModifiedBy
public void setLastModifiedBy(String lastModifiedBy)
Deprecated.Sets the user ID who last modified the policy.- Parameters:
lastModifiedBy- user ID who last modified the policy.
-
getCreatedBy
public String getCreatedBy()
Deprecated.Returns the user ID who created the policy.- Returns:
- user ID who created the policy.
-
setCreatedBy
public void setCreatedBy(String createdBy)
Deprecated.Sets the user ID who created the policy.- Parameters:
createdBy- user ID who created the policy.
-
-