com.sun.identity.policy.client
Class PolicyEvaluatorFactory
java.lang.Object
|
+--com.sun.identity.policy.client.PolicyEvaluatorFactory
- public class PolicyEvaluatorFactory
- extends java.lang.Object
This class acts as a factory to get an instance of
com.sun.idenity.policy.client.PolicyEvaluator
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static PolicyEvaluatorFactory getInstance()
- Returns an instance of
PolicyEvaluatorFactory
- Returns:
- an instance of
PolicyEvaluatorFactory
getPolicyEvaluator
public PolicyEvaluator getPolicyEvaluator(java.lang.String serviceName)
throws PolicyException,
SSOException
- Returns an instance of
com.sun.identity.policy.client.PolicyEvaluator
- Parameters:
serviceName - name of the service for which to get the
PolicyEvaluator.- Returns:
- an instance of
PolicyEvaluator. - Throws:
PolicyException - if creation of evaluator fails.SSOException - if application single sign on token is invalid.
getPolicyEvaluator
public PolicyEvaluator getPolicyEvaluator(java.lang.String serviceName,
AppSSOTokenProvider appSSOTokenProvider)
throws PolicyException,
SSOException
- Returns an instance of
com.sun.identity.policy.client.PolicyEvaluator
- Parameters:
serviceName - name of the service for which to get the
com.sun.identity.policy.client.PolicyEvaluatorappSSOTokenProvider - application single sign on token Provider- Returns:
- an instance of
com.sun.identity.policy.client.PolicyEvaluator - Throws:
PolicyException - if creation of evaluator fails.SSOException - if application single sign on token is invalid.
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.