Package com.sun.identity.policy.util
Class PolicyDecisionUtils
- java.lang.Object
-
- com.sun.identity.policy.util.PolicyDecisionUtils
-
public class PolicyDecisionUtils extends Object
The class provides some policy utility methods to be used by authentication service for Resource/IP/Environment based authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTH_REDIRECTION_ADVICE
static String
AUTH_ROLE_ADVICE
static String
AUTH_USER_ADVICE
-
Constructor Summary
Constructors Constructor Description PolicyDecisionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List
doResourceIPEnvAuth(String resourceUrl, String realm, Map envParameters)
Performs Resource/IP/Environment based authentication.
-
-
-
Field Detail
-
AUTH_USER_ADVICE
public static final String AUTH_USER_ADVICE
- See Also:
- Constant Field Values
-
AUTH_ROLE_ADVICE
public static final String AUTH_ROLE_ADVICE
- See Also:
- Constant Field Values
-
AUTH_REDIRECTION_ADVICE
public static final String AUTH_REDIRECTION_ADVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doResourceIPEnvAuth
public static List doResourceIPEnvAuth(String resourceUrl, String realm, Map envParameters) throws PolicyException
Performs Resource/IP/Environment based authentication. This method is used by auth login viewbean.- Parameters:
resourceUrl
- Resource URL for policy evaluation.realm
- The realm which is used in authentication.envParameters
- Environment map for policy evaluation. Keys of the map are Strings, values of the map are Set of Strings.- Returns:
- a list which may be contain empty, one or two values.
If the returned List size is two, first value is an instance of
AuthContext.IndexType
, second value is a String which indicates the value of theAuthContext.IndexType
. If the returned List size is one, the value is a String which indicates the redirection URL (this is the redirection advice case). If the return List is empty, it means that there is no policy advice for the resource to be accessed. - Throws:
PolicyException
- if policy processing error occurs.
-
-