Uses of Class
com.sun.identity.policy.PolicyException

Packages that use 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 Type
    Class
    Description
    class 
    Exception thrown if a name of an object such as policy, rule or referral has invalid format
    class 
    Exception thrown if a name of an object such as policy, rule or referral is invalid
    class 
    Exception thrown if any configured limit is exceeded
    class 
    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 permissions
    class 
    Exception thrown to indicate that an object you are trying to remove is in use and therefore can not be removed.
    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.
    ConditionTypeManager.getCondition(String conditionType)
    Deprecated.
    Returns an instance of the Condition given the condition type name.
    ConditionTypeManager.getConditionTypeNames()
    Deprecated.
    Returns a Set of all valid condition type names defined by the policy service.
    ProxyPolicyEvaluatorFactory.getInstance()
    Deprecated.
    Gets an instance of ProxyPolicyEvaluatorFactory.
    PolicyManager.getPolicy(String policyName)
    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 of ProxyPolicyEvaluator.
    ReferralTypeManager.getReferral(String referralType)
    Deprecated.
    Returns an instance of the Referral 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 the ResponseProvider given the response provider type name.
    ResponseProviderTypeManager.getResponseProviderTypeNames()
    Deprecated.
    Returns a set of all valid ResponseProvider type names defined in the PolicyConfig service.
    ConditionTypeManager.getSelectedConditionTypeNames()
    Deprecated.
    Returns a Set 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 valid ResponseProvider 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 the Subject given the subject type name.
    SubjectTypeManager.getSubjectByName(String subjectName)
    Deprecated.
    Returns the Subject object identified by subjectName defined at the realm
    SubjectTypeManager.getSubjectNames()
    Deprecated.
    Get the set of names of Subject(s) defined at the realm
    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.
    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 name
    void
    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
    Modifier
    Constructor
    Description
     
    PolicyEvaluator(String serviceTypeName)
    Deprecated.
    Constructor to create a PolicyEvaluator given the ServiceType name.
     
    Deprecated.
    Constructor for PolicyManager for the top (or root) organization.
     
    Deprecated.
    Constructor for PolicyManager for the specified organization, sub organization or a container object.
  • Uses of PolicyException in com.sun.identity.policy.interfaces

    Modifier and Type
    Method
    Description
    Condition.getConditionDecision(SSOToken token, Map<String,Set<String>> env)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the decision computed by this condition object, based on the Map of environment parameters
    Condition.getDisplayName(String property, Locale locale)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the display name for the property name.
    ResponseProvider.getDisplayName(String property, Locale locale)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the display name for the property name.
    Referral.getPolicyDecision(SSOToken token, String resourceType, String resourceName, Set actionNames, Map envParameters)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets policy results
    Referral.getResourceNames(SSOToken token, String serviceTypeName, String resourceName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets resource names that are exact matches, sub resources or wild card matches of argument resource name.
    ResponseProvider.getResponseDecision(SSOToken token, Map env)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the response attributes computed by this ResponseProvider object, based on the SSOToken and Map of environment parameters.
    Condition.getValidValues(String property)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a set of valid values given the property name.
    Referral.getValidValues(SSOToken token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the valid values for this referral
    Referral.getValidValues(SSOToken token, String pattern)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the valid values for this referral matching a pattern
    ResponseProvider.getValidValues(String property)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a set of valid values given the property name.
    Subject.getValidValues(SSOToken token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a list of possible values for the Subject .
    Subject.getValidValues(SSOToken token, String pattern)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a list of possible values for the Subject that satisfy the given pattern.
    Referral.getValueSyntax(SSOToken token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the syntax for the value
    Subject.getValueSyntax(SSOToken token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the syntax of the values the Subject implementation can have.
    void
    ResponseProvider.initialize(Map configParams)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Initialize the ResponseProvider
    void
    Subject.initialize(Map configParams)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Initialize (or configure) the Subject object.
    boolean
    Subject.isMember(SSOToken token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Determines if the user belongs to this instance of the Subject object.
    void
    Condition.setProperties(Map<String,Set<String>> properties)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the properties of the condition.
    void
    ResponseProvider.setProperties(Map properties)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the properties of the responseProvider plugin.
  • Uses of PolicyException in com.sun.identity.policy.remote

    Modifier and Type
    Class
    Description
    class 
    The class PolicyEvaluationException is the exception for the error happening in policy request XML parsing and policy request evaluation.