public interface SubjectMapper
Subject
in the XACML Request
to an Object which
represents the "subject" in the Federation manager context. A plugin
implementing this SPI needs to be defined and configured at the PDP
end for each trusted PEP ( as part of the metadata). A default
mapper has been provided out-of-box which would map the XACML
Subject
to a SSOToken
,
the SSOToken
being the representation of the
Subject
in federation manager.Modifier and Type | Method and Description |
---|---|
void |
initialize(String pdpEntityId,
String pepEntityId,
Map properties)
Initializes the configuration data needed by this mapper.
|
Object |
mapToNativeSubject(List xacmlContextSubjects)
This is the main API which does the mapping of XACML
Subject
to native subject ( native being subject in the context of the federation
manager). |
void initialize(String pdpEntityId, String pepEntityId, Map properties) throws XACMLException
Map
of key-value pairs
to define its configuration in addition to the metadata.pdpEntityId
- entity id of the PDP which is doing this subject
mapping and who has received the XACML requestpepEntityId
- entity id of the PEP ( requester) of the
policy decision.properties
- Map
of other properties which can be
consumed by this mapper to do the subject mapping.XACMLException
- if the configration intialization
encounters an error condition.Object mapToNativeSubject(List xacmlContextSubjects) throws XACMLException
Subject
to native subject ( native being subject in the context of the federation
manager).xacmlContextSubjects
- xacml-context:Subject
s from the
xacml-context:Request
object.SSOToken
representing the mapped native subject.
If the mapping fails, null would be returned
XACMLException
- if an error conditions occurs.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.