public class IDPPAuthorizer extends Object implements Authorizer
IDPPAuthorizer
is the default implementation of
IDPP Authorization and implements Authorizer
. It
provides an allow ,deny, interact for consent, interact for value action
based on the resource that a WSC is requesting for.
This makes use of the existing OpenAM policy framework by defining
policy as action values in the personal profile service.AUTH_TYPE, MESSAGE, USER_ID
Constructor and Description |
---|
IDPPAuthorizer()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
getAuthorizationDecision(Object credential,
String action,
Object data,
Map env)
Returns authorization decision to query or modify the select data
|
boolean |
isAuthorized(Object credential,
String action,
Object data,
Map env)
Checks whether this is authorized
IDPPAuthorizer implements this class.
|
public boolean isAuthorized(Object credential, String action, Object data, Map env)
isAuthorized
in interface Authorizer
credential
- credentialaction
- actiondata
- objectenv
- env mappublic Object getAuthorizationDecision(Object credential, String action, Object data, Map env) throws Exception
getAuthorizationDecision
in interface Authorizer
credential
- SSOToken of a WSC.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_ID
Value: id of the user whose resource is being accessed.
Key: AUTH_TYPE
Value: The authentication mechanism WSC used.
Key: MESSAGE
Value:
com.sun.identity.liberty.ws.soapbinding.Message
.Exception
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.