public class DefaultSiteAttributeMapper extends Object implements ConsumerSiteAttributeMapper
Attribute
objects to be returned as
AttributeStatements
elements, as part of the
Authentication Assertion returned to the partner during the
SSO scenario of Browser Artifact and POST profile.
Constructor and Description |
---|
DefaultSiteAttributeMapper() |
Modifier and Type | Method and Description |
---|---|
List |
getAttributes(Object token,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String targetURL)
Returns
List of Attribute objects |
protected Attribute |
getSAMLAttribute(String name,
String attrNamespace,
String[] values)
Returns the SAML
Attribute object. |
public List getAttributes(Object token, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String targetURL) throws SAMLException
List
of Attribute
objectsgetAttributes
in interface ConsumerSiteAttributeMapper
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 unavailablList
if Attribute
objects.
Attribute
is defined in the SAML SDK as part of
com.sun.identity.saml.assertion
package.SAMLException
- if attributes cannot be obtained.protected Attribute getSAMLAttribute(String name, String attrNamespace, String[] values) throws SAMLException
Attribute
object.name
- attribute name.attrNamespace
- Name format of the attributevalues
- attribute values.SAMLException
- if any failure.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.