Package com.sun.identity.saml2.profile
Class AttributeQueryUtil
java.lang.Object
com.sun.identity.saml2.profile.AttributeQueryUtil
This class provides methods to send or process
AttributeQuery
.-
Method Summary
Modifier and TypeMethodDescriptiongetAttributesForFedlet
(String spEntityID, String idpEntityID, String nameIDValue, List<String> attrsList, String attrQueryProfileAlias, String subjectDN) Sends the AttributeQuery to specified attribute authority, validates the response and returns the attribute mapMap<String, Set<String>>
to the Fedletstatic Response
sendAttributeQuery
(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding) Sends theAttributeQuery
to specified attribute authority and returnsResponse
coming from the attribute authority.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) Sends theAttributeQuery
to specified attribute authority and returnsResponse
coming from the attribute authority.
-
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 theAttributeQuery
to specified attribute authority and returnsResponse
coming from the attribute authority.- Parameters:
attrQuery
- theAttributeQuery
objectattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entityattrQueryProfile
- the attribute query profile or null to ignoreattrProfile
- the attribute profilebinding
- 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 theAttributeQuery
to specified attribute authority and returnsResponse
coming from the attribute authority.- Parameters:
attrQuery
- theAttributeQuery
objectrequest
- the HTTP Requestresponse
- the HTTP ResponseattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entityattrQueryProfile
- the attribute query profile or null to ignoreattrProfile
- the attribute profilebinding
- 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 mapMap<String, Set<String>>
to the Fedlet- Parameters:
spEntityID
- SP entity IDidpEntityID
- IDP entity IDnameIDValue
- NameID valueattrsList
- The list of attributes whose values need to be fetched from IDPattrQueryProfileAlias
- Attribute Query Profile AliassubjectDN
- 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
-