Package com.sun.identity.xacml.plugins
Class FMSubjectMapper
- java.lang.Object
-
- com.sun.identity.xacml.plugins.FMSubjectMapper
-
- All Implemented Interfaces:
SubjectMapper
public class FMSubjectMapper extends Object implements SubjectMapper
This class implements SubjectMapper to map between XACML context Subject and native subject This mapper recognises only the following XACML specification defined attributeIdurn:oasis:names:tc:xacml:1.0:subject:subject-id
Only following dataTypes would be understood for subject-idurn:oasis:names:tc:xacml:1.0:data-type:x500Name urn:sun:names:xacml:2.0:data-type:opensso-session-id urn:sun:names:xacml:2.0:data-type:openfm-sp-nameid
Only following value would be accepted for subject-category attribute of Subjecturn:oasis:names:tc:xacml:1.0:subject-category:access-subject
If the attribute or the value is not specified in the request, it would default to this value. The Subject would map to null if a different value has been specified in error condition.
-
-
Constructor Summary
Constructors Constructor Description FMSubjectMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(String pdpEntityId, String pepEntityId, Map properties)Initializes the mapper implementation.ObjectmapToNativeSubject(List xacmlContextSubjects)Returns native subject, OpenAM SSOToken
-
-
-
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 interfaceSubjectMapper- Parameters:
pdpEntityId- EntityID of PDPpepEntityId- EntityID of PEPproperties- configuration properties- Throws:
XACMLException- if can not initialize
-
mapToNativeSubject
public Object mapToNativeSubject(List xacmlContextSubjects) throws XACMLException
Returns native subject, OpenAM SSOToken- Specified by:
mapToNativeSubjectin interfaceSubjectMapper- Parameters:
xacmlContextSubjects- XACML context Subject(s) from the xacml-context:Request- Returns:
- native subject, OpenAM SSOToken, returns null if Subject did not match
- Throws:
XACMLException- if can not map to native subject
-
-