com.sun.identity.policy
Class ProxyPolicyEvaluatorFactory

java.lang.Object
  extended bycom.sun.identity.policy.ProxyPolicyEvaluatorFactory

public class ProxyPolicyEvaluatorFactory
extends java.lang.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, java.lang.String serviceType)
          Gets an instance of ProxyPolicyEvaluator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                                                    java.lang.String serviceType)
                                             throws NoPermissionException,
                                                    NameNotFoundException,
                                                    PolicyException,
                                                    SSOException
Gets an instance of ProxyPolicyEvaluator. Only privileged users can get ProxyPolicyEvaluator. Only top level admin, org 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


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.