com.sun.identity.saml2.profile
Class AttributeQueryUtil

java.lang.Object
  extended by com.sun.identity.saml2.profile.AttributeQueryUtil

public class AttributeQueryUtil
extends Object

This class provides methods to send or processs AttributeQuery.


Method Summary
static Map getAttributeMapForFedlet(String spEntityID, String idpEntityID, String nameIDValue, List attrsList, String attrQueryProfileAlias, String subjectDN)
          Sends the AttributeQuery to specifiied attribute authority, validates the response and returns the attribute map Map to the Fedlet
static Response sendAttributeQuery(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding)
          Sends the AttributeQuery to specifiied attribute authority and returns Response coming from the attribute authority.
 

Method Detail

sendAttributeQuery

public static Response sendAttributeQuery(AttributeQuery attrQuery,
                                          String attrAuthorityEntityID,
                                          String realm,
                                          String attrQueryProfile,
                                          String attrProfile,
                                          String binding)
                                   throws SAML2Exception
Sends the AttributeQuery to specifiied attribute authority and returns Response coming from the attribute authority.

Parameters:
attrQuery - the AttributeQuery object
attrAuthorityEntityID - entity ID of attribute authority
realm - the realm of hosted entity
attrQueryProfile - the attribute query profile or null to ignore
attrProfile - the attribute profile
binding - the binding
Returns:
the Response object
Throws:
SAML2Exception - if the operation is not successful

getAttributeMapForFedlet

public static Map getAttributeMapForFedlet(String spEntityID,
                                           String idpEntityID,
                                           String nameIDValue,
                                           List attrsList,
                                           String attrQueryProfileAlias,
                                           String subjectDN)
                                    throws SAML2Exception
Sends the AttributeQuery to specifiied attribute authority, validates the response and returns the attribute map Map to the Fedlet

Parameters:
spEntityID - SP entity ID
idpEntityID - IDP entity ID
nameIDValue - NameID value
attrsList - The list of attributes whose values needs to be fetched from IDP
encrypt - Boolean value to indicate whether the Fedlet will receive the encrypted data
attrQueryProfileAlias - Attribute Query Profile Alias
subjectDN - Attribute name which contains X.509 subject DN
Returns:
the Map object
Throws:
SAML2Exception - if the operation is not successful