Package com.sun.identity.saml.plugins
Class DefaultSiteAttributeMapper
- java.lang.Object
-
- com.sun.identity.saml.plugins.DefaultSiteAttributeMapper
-
- All Implemented Interfaces:
ConsumerSiteAttributeMapper
public class DefaultSiteAttributeMapper extends Object implements ConsumerSiteAttributeMapper
This class reads Attribute Map in local configuration and maps user's local * attributes to list ofAttributeobjects to be returned asAttributeStatementselements, as part of the Authentication Assertion returned to the partner during the SSO scenario of Browser Artifact and POST profile.
-
-
Constructor Summary
Constructors Constructor Description DefaultSiteAttributeMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetAttributes(Object token, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String targetURL)ReturnsListofAttributeobjectsprotected AttributegetSAMLAttribute(String name, String attrNamespace, String[] values)Returns the SAMLAttributeobject.
-
-
-
Method Detail
-
getAttributes
public List getAttributes(Object token, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String targetURL) throws SAMLException
ReturnsListofAttributeobjects- Specified by:
getAttributesin interfaceConsumerSiteAttributeMapper- Parameters:
token- User's session.request- The HttpServletRerquest object of the request which may contains query attributes to be included in the Assertion. This could be null if unavailable.response- The HttpServletResponse object. This could be null if unavailable.targetURL- value for TARGET query parameter when the user accessing the SAML aware servlet or post profile servlet. This could be null if unavailabl- Returns:
ListifAttributeobjects.Attributeis defined in the SAML SDK as part ofcom.sun.identity.saml.assertionpackage.- Throws:
SAMLException- if attributes cannot be obtained.
-
getSAMLAttribute
protected Attribute getSAMLAttribute(String name, String attrNamespace, String[] values) throws SAMLException
Returns the SAMLAttributeobject.- Parameters:
name- attribute name.attrNamespace- Name format of the attributevalues- attribute values.- Throws:
SAMLException- if any failure.
-
-