public class FMResourceMapper extends Object implements ResourceMapper
attributeId
urn:oasis:names:tc:xacml:1.0:resource:resource-idThe attribtue is required to have dataType
http://www.w3.org/2001/XMLSchema#stringAttribute resource-id is mapped to OpenAM Policy resource name. This mapper also recognises only additional attributeId
urn:opensso:names:xacml:2.0:resource:target-serviceThe attribtue is required to have dataType
http://www.w3.org/2001/XMLSchema#stringAttribute target-service is mapped to OpenAM Policy service type name If the attribute is not specified in the request a default value of
iPlanetAMWebAgentService
would be used. This is
the service name for policies that protect URLs.Constructor and Description |
---|
FMResourceMapper() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(String pdpEntityId,
String pepEntityId,
Map properties)
Initializes the mapper implementation.
|
String[] |
mapToNativeResource(Resource xacmlContextResource)
Returns native resource and service name
|
Resource |
mapToXACMLResoure(String resourceName,
String serviceName)
Returns XACML context Resource
|
public void initialize(String pdpEntityId, String pepEntityId, Map properties) throws XACMLException
initialize
in interface ResourceMapper
pdpEntityId
- EntityID of PDPpepEntityId
- EntityID of PEPproperties
- configuration propertiesXACMLException
- if can not initializepublic String[] mapToNativeResource(Resource xacmlContextResource) throws XACMLException
mapToNativeResource
in interface ResourceMapper
xacmlContextResource
- XACML context ResourceXACMLException
- if can not map to native resource
and service namepublic Resource mapToXACMLResoure(String resourceName, String serviceName) throws XACMLException
mapToXACMLResoure
in interface ResourceMapper
resourceName
- native resource nameserviceName
- native service name the requested resource belongs toXACMLException
- if can not map to XACML context ResourceCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.