Package com.sun.identity.xacml.spi
Interface ActionMapper
-
- All Known Implementing Classes:
FMActionMapper
public interface ActionMapper
This interface defines the SPI for pluggable implementations to map XACML context Action and native Action
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(String pdpEntityId, String pepEntityId, Map properties)
Initializes the mapper implementation.String
mapToNativeAction(Action xacmlContextAction, String serviceName)
Returns native action nameAction
mapToXACMLAction(String nativeActionName, String serviceName)
Returns XACML context ActionString
mapToXACMLActionEffect(String nativeActionEffect, String serviceName)
Returns XACML context decision effect
-
-
-
Method Detail
-
initialize
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.- Parameters:
pdpEntityId
- EntityID of PDPpepEntityId
- EntityID of PEPproperties
- configuration properties- Throws:
XACMLException
- if can not initialize
-
mapToNativeAction
String mapToNativeAction(Action xacmlContextAction, String serviceName) throws XACMLException
Returns native action name- 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
Action mapToXACMLAction(String nativeActionName, String serviceName) throws XACMLException
Returns XACML context Action- 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
String mapToXACMLActionEffect(String nativeActionEffect, String serviceName) throws XACMLException
Returns XACML context decision effect- Parameters:
nativeActionEffect
- native action effectserviceName
- native service name the requested resource belongs to- Throws:
XACMLException
- if can not map to XACML context Action
-
-