Uses of Class
com.sun.identity.policy.PolicyException
-
Packages that use PolicyException Package Description com.sun.identity.policy Provides classes for policy administration and evaluation.com.sun.identity.policy.interfaces Deprecated interfaces for writing custom Policy plugins for Conditions, Subjects, Referrals, ResponseProviders and Resources.com.sun.identity.policy.remote Classes to handle policies remotely. -
-
Uses of PolicyException in com.sun.identity.policy
Subclasses of PolicyException in com.sun.identity.policy Modifier and Type Class Description class
InvalidFormatException
Exception thrown if a name of an object such as policy, rule or referral has invalid formatclass
InvalidNameException
Exception thrown if a name of an object such as policy, rule or referral is invalidclass
LimitExceededException
Exception thrown if any configured limit is exceededclass
NameAlreadyExistsException
Exception thrown if a name of an object such as policy, rule or referral already exists (used by another object of the same type)class
NameNotFoundException
Exception thrown if an object such as policy, rule or referral for the given name does not exist.class
NoPermissionException
Exception thrown if a policy operation attempted could not be done due to insufficient permissionsclass
ObjectInUseException
Exception thrown to indicate that an object you are trying to remove is in use and therefore can not be removed.Methods in com.sun.identity.policy that throw PolicyException Modifier and Type Method Description void
PolicyManager. addPolicy(Policy policy)
Deprecated.Adds a policy to the data store.void
Policy. addRealmSubject(SSOToken token, String subjectName, String realmName, boolean exclusive)
Deprecated.Adds a reference in the policy to a Subject defined at the realm.void
Policy. addRealmSubject(String subjectName, SubjectTypeManager stm, boolean exclusive)
Deprecated.Adds a reference in the policy to a Subject defined at the realm.void
SubjectTypeManager. addSubject(String subjectName, Subject subject)
Deprecated.Adds a policy subject at realm.Condition
ConditionTypeManager. getCondition(String conditionType)
Deprecated.Returns an instance of theCondition
given the condition type name.Set
ConditionTypeManager. getConditionTypeNames()
Deprecated.Returns aSet
of all valid condition type names defined by the policy service.static ProxyPolicyEvaluatorFactory
ProxyPolicyEvaluatorFactory. getInstance()
Deprecated.Gets an instance of ProxyPolicyEvaluatorFactory.Policy
PolicyManager. getPolicy(String policyName)
Deprecated.Gets the policy object given the name of the policy.PolicyDecision
PolicyEvaluator. getPolicyDecision(SSOToken token, String resourceName, Set actionNames, Map envParameters)
Deprecated.Evaluates privileges of the user to perform the specified actions on the specified resource.PolicyDecision
ProxyPolicyEvaluator. getPolicyDecisionIgnoreSubjects(String resourceName, Set actionNames, Map env)
Deprecated.Gets policy decision for a resource, skipping subject evaluation.Set
PolicyManager. getPolicyNames()
Deprecated.Gets a set of names of polices defined in the organization for which the policy manager was instantiated.Set
PolicyManager. getPolicyNames(String pattern)
Deprecated.Gets a set of selected policy names matching the pattern in the given organization.ProxyPolicyEvaluator
ProxyPolicyEvaluatorFactory. getProxyPolicyEvaluator(SSOToken token, String serviceType)
Deprecated.Gets an instance ofProxyPolicyEvaluator
.Referral
ReferralTypeManager. getReferral(String referralType)
Deprecated.Returns an instance of theReferral
given the referral type name.Set
ReferralTypeManager. getReferralTypeNames()
Deprecated.Returns a set of all valid referral type names defined by the policy service.Set
PolicyEvaluator. getResourceResults(SSOToken userToken, String resourceName, String scope, Map envParameters)
Deprecated.Gets resource result objects given a resource name.ResponseProvider
ResponseProviderTypeManager. getResponseProvider(String responseProviderTypeName)
Deprecated.Returns an instance of theResponseProvider
given the response provider type name.Set
ResponseProviderTypeManager. getResponseProviderTypeNames()
Deprecated.Returns a set of all validResponseProvider
type names defined in thePolicyConfig
service.Set
ConditionTypeManager. getSelectedConditionTypeNames()
Deprecated.Returns aSet
of valid condition type names configured for the organization.Set
ReferralTypeManager. getSelectedReferralTypeNames()
Deprecated.Returns a set of valid referral type names configured for the organization.Set
ResponseProviderTypeManager. getSelectedResponseProviderTypeNames()
Deprecated.Returns a set of validResponseProvider
type names configured.Set
SubjectTypeManager. getSelectedSubjectTypeNames()
Deprecated.Returns a set of valid subject type names configured for the organization.Subject
SubjectTypeManager. getSubject(String subjectType)
Deprecated.Returns an instance of theSubject
given the subject type name.Subject
SubjectTypeManager. getSubjectByName(String subjectName)
Deprecated.Returns the Subject object identified by subjectName defined at the realmSet
SubjectTypeManager. getSubjectNames()
Deprecated.Get the set of names of Subject(s) defined at the realmSet
SubjectTypeManager. getSubjectTypeNames()
Deprecated.Returns a set of all valid subject type names defined by the policy service.boolean
PolicyEvaluator. isAllowed(SSOToken token, String resourceName, String actionName, Map envParameters)
Deprecated.Evaluates simple privileges of boolean type.void
PolicyManager. removePolicy(String policyName)
Deprecated.Deletes a policy in the organization with the given name.Subject
SubjectTypeManager. removeSubject(String subjectName)
Deprecated.Removes the subject with the given name from the realm.Subject
SubjectTypeManager. removeSubject(String subjectName, boolean forcedRemove)
Deprecated.Removes the subject with the given name from the realm.void
PolicyManager. replacePolicy(Policy policy)
Deprecated.Replaces a policy object in the data store with the same policy namevoid
SubjectTypeManager. replaceSubject(String subjectName, Subject subject)
Deprecated.Replaces an existing subject with the same name by the current one at the realm.void
Policy. store(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.Constructors in com.sun.identity.policy that throw PolicyException Constructor Description PolicyEvaluator(String serviceTypeName)
Deprecated.Constructor to create aPolicyEvaluator
given theServiceType
name.PolicyManager(SSOToken token)
Deprecated.Constructor forPolicyManager
for the top (or root) organization.PolicyManager(SSOToken token, String name)
Deprecated.Constructor forPolicyManager
for the specified organization, sub organization or a container object. -
Uses of PolicyException in com.sun.identity.policy.interfaces
Methods in com.sun.identity.policy.interfaces that throw PolicyException Modifier and Type Method Description ConditionDecision
Condition. getConditionDecision(SSOToken token, Map<String,Set<String>> env)
Deprecated.Gets the decision computed by this condition object, based on theMap
of environment parametersString
Condition. getDisplayName(String property, Locale locale)
Deprecated.Gets the display name for the property name.String
ResponseProvider. getDisplayName(String property, Locale locale)
Deprecated.Gets the display name for the property name.PolicyDecision
Referral. getPolicyDecision(SSOToken token, String resourceType, String resourceName, Set actionNames, Map envParameters)
Deprecated.Gets policy resultsSet
Referral. getResourceNames(SSOToken token, String serviceTypeName, String resourceName)
Deprecated.Gets resource names that are exact matches, sub resources or wild card matches of argument resource name.Map
ResponseProvider. getResponseDecision(SSOToken token, Map env)
Deprecated.Gets the response attributes computed by this ResponseProvider object, based on theSSOToken
andMap
of environment parameters.Set<String>
Condition. getValidValues(String property)
Deprecated.Returns a set of valid values given the property name.ValidValues
Referral. getValidValues(SSOToken token)
Deprecated.Gets the valid values for this referralValidValues
Referral. getValidValues(SSOToken token, String pattern)
Deprecated.Gets the valid values for this referral matching a patternSet
ResponseProvider. getValidValues(String property)
Deprecated.Returns a set of valid values given the property name.ValidValues
Subject. getValidValues(SSOToken token)
Deprecated.Returns a list of possible values for theSubject
.ValidValues
Subject. getValidValues(SSOToken token, String pattern)
Deprecated.Returns a list of possible values for theSubject
that satisfy the givenpattern
.Syntax
Referral. getValueSyntax(SSOToken token)
Deprecated.Gets the syntax for the valueSyntax
Subject. getValueSyntax(SSOToken token)
Deprecated.Returns the syntax of the values theSubject
implementation can have.void
ResponseProvider. initialize(Map configParams)
Deprecated.Initialize theResponseProvider
void
Subject. initialize(Map configParams)
Deprecated.Initialize (or configure) theSubject
object.boolean
Subject. isMember(SSOToken token)
Deprecated.Determines if the user belongs to this instance of theSubject
object.void
Condition. setProperties(Map<String,Set<String>> properties)
Deprecated.Sets the properties of the condition.void
ResponseProvider. setProperties(Map properties)
Deprecated.Sets the properties of the responseProvider plugin. -
Uses of PolicyException in com.sun.identity.policy.remote
Subclasses of PolicyException in com.sun.identity.policy.remote Modifier and Type Class Description class
PolicyEvaluationException
The classPolicyEvaluationException
is the exception for the error happening in policy request XML parsing and policy request evaluation.
-