I was authenticating my Service with SAML based authentication and configured the attribute as follows:
<Attribute name="attributeMap">
<Value>userid=uid</Value>
<Value>name=cn</Value>
</Attribute>
And was fetching it back in the following way:
Map attribute= (Map) map.get(SAML2Constants.ATTRIBUTE_MAP);
But when I access the Map the field name comes as "uid" and "cn" which is ID provider specific key,but as per the document it should come as "userid" and "name"