com.sun.identity.policy
Class ProxyPolicyEvaluatorFactory

java.lang.Object
  extended by com.sun.identity.policy.ProxyPolicyEvaluatorFactory

public class ProxyPolicyEvaluatorFactory
extends Object

Factory class used to get ProxyPolicyEvaluator instances. This is a singleton.


Method Summary
static ProxyPolicyEvaluatorFactory getInstance()
          Gets an instance of ProxyPolicyEvaluatorFactory.
 ProxyPolicyEvaluator getProxyPolicyEvaluator(SSOToken token, String serviceType)
          Gets an instance of ProxyPolicyEvaluator.
 

Method Detail

getInstance

public static ProxyPolicyEvaluatorFactory getInstance()
                                               throws PolicyException
Gets an instance of ProxyPolicyEvaluatorFactory.

Returns:
proxy policy evaluator factory
Throws:
PolicyException - any policy exception coming from policy frame work

getProxyPolicyEvaluator

public ProxyPolicyEvaluator getProxyPolicyEvaluator(SSOToken token,
                                                    String serviceType)
                                             throws NoPermissionException,
                                                    NameNotFoundException,
                                                    PolicyException,
                                                    SSOException
Gets an instance of ProxyPolicyEvaluator. Only privileged users can get ProxyPolicyEvaluator. Only top level admin, realm admin or policy admin can get ProxyPolicyEvaluator.

Parameters:
token - sso token used to get the proxy policy evaluator
serviceType - service type for which get the proxy policy evaluator
Returns:
proxy policy evaluator
Throws:
SSOException - if the token is invalid
NoPermissionException - if the token does not have privileges to get proxy policy evaluator
NameNotFoundException - if the serviceType is not found in registered service types
PolicyException - any policy exception coming from policy frame work