Class AttributeQueryUtil

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

@Supported public class AttributeQueryUtil extends Object
This class provides methods to send or process AttributeQuery.
  • Method Details

    • sendAttributeQuery

      @Supported public static Response sendAttributeQuery(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding) throws com.sun.identity.saml2.common.SAML2Exception
      Sends the AttributeQuery to specified 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:
      com.sun.identity.saml2.common.SAML2Exception - if the operation is not successful
    • sendAttributeQuery

      @Supported public static void sendAttributeQuery(AttributeQuery attrQuery, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding) throws com.sun.identity.saml2.common.SAML2Exception
      Sends the AttributeQuery to specified attribute authority and returns Response coming from the attribute authority.
      Parameters:
      attrQuery - the AttributeQuery object
      request - the HTTP Request
      response - the HTTP Response
      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
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the operation is not successful
    • getAttributesForFedlet

      @Supported public static Map<String,Set<String>> getAttributesForFedlet(String spEntityID, String idpEntityID, String nameIDValue, List<String> attrsList, String attrQueryProfileAlias, String subjectDN) throws com.sun.identity.saml2.common.SAML2Exception
      Sends the AttributeQuery to specified attribute authority, validates the response and returns the attribute map Map<String, Set<String>> to the Fedlet
      Parameters:
      spEntityID - SP entity ID
      idpEntityID - IDP entity ID
      nameIDValue - NameID value
      attrsList - The list of attributes whose values need to be fetched from IDP
      attrQueryProfileAlias - Attribute Query Profile Alias
      subjectDN - Attribute name which contains X.509 subject DN
      Returns:
      the Map object
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the operation is not successful