Package com.sun.identity.xacml.plugins
Class FMActionMapper
- java.lang.Object
-
- com.sun.identity.xacml.plugins.FMActionMapper
-
- All Implemented Interfaces:
ActionMapper
public class FMActionMapper extends Object implements ActionMapper
This class implements ActionMapper to map between XACML context action and FM native action. This mapper would recognise only the following XACML definedattributeIdurn:oasis:names:tc:xacml:1.0:action:action-id
This attribute would be mapped to an action name in OpenAM Policy. This mapper requires that the dataType of the attribute ishttp://www.w3.org/2001/XMLSchema#string
-
-
Constructor Summary
Constructors Constructor Description FMActionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(String pdpEntityId, String pepEntityId, Map properties)Initializes the mapper implementation.StringmapToNativeAction(Action xacmlContextAction, String serviceName)Returns native action nameActionmapToXACMLAction(String nativeActionName, String serviceName)Returns XACML context ActionStringmapToXACMLActionEffect(String nativeActionEffect, String serviceName)Returns XACML context decision effect
-
-
-
Method Detail
-
initialize
public void initialize(String pdpEntityId, String pepEntityId, Map properties) throws XACMLException
Initializes the mapper implementation. This would be called immediately after constructing an instance of the implementation.- Specified by:
initializein interfaceActionMapper- Parameters:
pdpEntityId- EntityID of PDPpepEntityId- EntityID of PEPproperties- configuration properties- Throws:
XACMLException- if can not initialize
-
mapToNativeAction
public String mapToNativeAction(Action xacmlContextAction, String serviceName) throws XACMLException
Returns native action name- Specified by:
mapToNativeActionin interfaceActionMapper- Parameters:
xacmlContextAction- XACML context ActionserviceName- native service name the requested resource belongs to- Returns:
- native action name
- Throws:
XACMLException- if can not map to native action name
-
mapToXACMLAction
public Action mapToXACMLAction(String nativeActionName, String serviceName) throws XACMLException
Returns XACML context Action- Specified by:
mapToXACMLActionin interfaceActionMapper- Parameters:
nativeActionName- native action nameserviceName- native service name the requested resource belongs to- Returns:
- XACML context Action
- Throws:
XACMLException- if can not map to XACML context Action
-
mapToXACMLActionEffect
public String mapToXACMLActionEffect(String nativeActionEffect, String serviceName) throws XACMLException
Returns XACML context decision effect- Specified by:
mapToXACMLActionEffectin interfaceActionMapper- Parameters:
nativeActionEffect- native action effectserviceName- native service name the requested resource belongs to- Throws:
XACMLException- if can not map to XACML context Action
-
-