Uses of Class
com.sun.identity.policy.PolicyException
Package
Description
Provides classes for policy administration and evaluation.
Deprecated interfaces for writing custom Policy plugins for Conditions,
Subjects, Referrals, ResponseProviders and Resources.
Classes to handle policies remotely.
-
Uses of PolicyException in com.sun.identity.policy
Modifier and TypeClassDescriptionclass
Exception thrown if a name of an object such as policy, rule or referral has invalid formatclass
Exception thrown if a name of an object such as policy, rule or referral is invalidclass
Exception thrown if any configured limit is exceededclass
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
Exception thrown if an object such as policy, rule or referral for the given name does not exist.class
Exception thrown if a policy operation attempted could not be done due to insufficient permissionsclass
Exception thrown to indicate that an object you are trying to remove is in use and therefore can not be removed.Modifier and TypeMethodDescriptionvoid
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.ConditionTypeManager.getCondition
(String conditionType) Deprecated.Returns an instance of theCondition
given the condition type name.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.Deprecated.Gets the policy object given the name of the policy.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.ProxyPolicyEvaluator.getPolicyDecisionIgnoreSubjects
(String resourceName, Set actionNames, Map env) Deprecated.Gets policy decision for a resource, skipping subject evaluation.PolicyManager.getPolicyNames()
Deprecated.Gets a set of names of polices defined in the organization for which the policy manager was instantiated.PolicyManager.getPolicyNames
(String pattern) Deprecated.Gets a set of selected policy names matching the pattern in the given organization.ProxyPolicyEvaluatorFactory.getProxyPolicyEvaluator
(SSOToken token, String serviceType) Deprecated.Gets an instance ofProxyPolicyEvaluator
.ReferralTypeManager.getReferral
(String referralType) Deprecated.Returns an instance of theReferral
given the referral type name.ReferralTypeManager.getReferralTypeNames()
Deprecated.Returns a set of all valid referral type names defined by the policy service.PolicyEvaluator.getResourceResults
(SSOToken userToken, String resourceName, String scope, Map envParameters) Deprecated.Gets resource result objects given a resource name.ResponseProviderTypeManager.getResponseProvider
(String responseProviderTypeName) Deprecated.Returns an instance of theResponseProvider
given the response provider type name.ResponseProviderTypeManager.getResponseProviderTypeNames()
Deprecated.Returns a set of all validResponseProvider
type names defined in thePolicyConfig
service.ConditionTypeManager.getSelectedConditionTypeNames()
Deprecated.Returns aSet
of valid condition type names configured for the organization.ReferralTypeManager.getSelectedReferralTypeNames()
Deprecated.Returns a set of valid referral type names configured for the organization.ResponseProviderTypeManager.getSelectedResponseProviderTypeNames()
Deprecated.Returns a set of validResponseProvider
type names configured.SubjectTypeManager.getSelectedSubjectTypeNames()
Deprecated.Returns a set of valid subject type names configured for the organization.SubjectTypeManager.getSubject
(String subjectType) Deprecated.Returns an instance of theSubject
given the subject type name.SubjectTypeManager.getSubjectByName
(String subjectName) Deprecated.Returns the Subject object identified by subjectName defined at the realmSubjectTypeManager.getSubjectNames()
Deprecated.Get the set of names of Subject(s) defined at the realmSubjectTypeManager.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.SubjectTypeManager.removeSubject
(String subjectName) Deprecated.Removes the subject with the given name from the realm.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
Deprecated.Stores the policy object in a persistent data store under the organization, sub-organization or a container object, specified as a parameter.ModifierConstructorDescriptionPolicyEvaluator
(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
Modifier and TypeMethodDescriptionDeprecated.Gets the decision computed by this condition object, based on theMap
of environment parametersCondition.getDisplayName
(String property, Locale locale) Deprecated.Gets the display name for the property name.ResponseProvider.getDisplayName
(String property, Locale locale) Deprecated.Gets the display name for the property name.Referral.getPolicyDecision
(SSOToken token, String resourceType, String resourceName, Set actionNames, Map envParameters) Deprecated.Gets policy resultsReferral.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.ResponseProvider.getResponseDecision
(SSOToken token, Map env) Deprecated.Gets the response attributes computed by this ResponseProvider object, based on theSSOToken
andMap
of environment parameters.Condition.getValidValues
(String property) Deprecated.Returns a set of valid values given the property name.Referral.getValidValues
(SSOToken token) Deprecated.Gets the valid values for this referralReferral.getValidValues
(SSOToken token, String pattern) Deprecated.Gets the valid values for this referral matching a patternResponseProvider.getValidValues
(String property) Deprecated.Returns a set of valid values given the property name.Subject.getValidValues
(SSOToken token) Deprecated.Returns a list of possible values for theSubject
.Subject.getValidValues
(SSOToken token, String pattern) Deprecated.Returns a list of possible values for theSubject
that satisfy the givenpattern
.Referral.getValueSyntax
(SSOToken token) Deprecated.Gets the syntax for the valueSubject.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
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
Modifier and TypeClassDescriptionclass
The classPolicyEvaluationException
is the exception for the error happening in policy request XML parsing and policy request evaluation.