Interface Authorizer
-
- All Known Implementing Classes:
DefaultDiscoAuthorizer,IDPPAuthorizer
public interface AuthorizerThis classAuthorizeris an interface for identity service to check authorization of aWSC.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTH_TYPEKey of a parameter Map which contains information useful for policy evaluation.static StringMESSAGEKey of a parameter Map which contains information useful for policy evaluation.static StringUSER_IDKey of a parameter Map which contains information useful for policy evaluation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetAuthorizationDecision(Object credential, String action, Object data, Map env)Returns authorization decision for the given action(query or modify) and to the given select databooleanisAuthorized(Object credential, String action, Object data, Map env)Checks if theWSCis authorized to query or modify the select data.
-
-
-
Field Detail
-
USER_ID
static final String USER_ID
Key of a parameter Map which contains information useful for policy evaluation. The value of this key is id of the user whose resource id being accessed.- See Also:
- Constant Field Values
-
AUTH_TYPE
static final String AUTH_TYPE
Key of a parameter Map which contains information useful for policy evaluation. The value of this key is the authentication mechanism web service consumer used.- See Also:
- Constant Field Values
-
MESSAGE
static final String MESSAGE
Key of a parameter Map which contains information useful for policy evaluation. The value of this key iscom.sun.identity.liberty.ws.soapbinding.Message.- See Also:
- Constant Field Values
-
-
Method Detail
-
isAuthorized
boolean isAuthorized(Object credential, String action, Object data, Map env)
Checks if theWSCis authorized to query or modify the select data.- Parameters:
credential- credential of aWSC.action- request action.data- Object who is being accessed.env- A Map contains information useful for policy evaluation. The following key is defined and its value should be passed in: Key:USER_IDValue: id of the user whose resource is being accessed. Key:AUTH_TYPEValue: The authentication mechanismWSCused. Key:MESSAGEValue:com.sun.identity.liberty.ws.soapbinding.Message.- Returns:
- true if the
WSCis authorized.
-
getAuthorizationDecision
Object getAuthorizationDecision(Object credential, String action, Object data, Map env) throws Exception
Returns authorization decision for the given action(query or modify) and to the given select data- Parameters:
credential- credential of aWSC.action- request action.data- Object who is being accessed.env- A Map contains information useful for policy evaluation. The following key is defined and its value should be passed in: Key:USER_IDValue: id of the user whose resource is being accessed. Key:AUTH_TYPEValue: The authentication mechanismWSCused. Key:MESSAGEValue:com.sun.identity.liberty.ws.soapbinding.Message.- Returns:
AuthorizationDecisionobject contains authorization decision information for the given resource.- Throws:
Exception
-
-