public class AttributeQueryUtil extends Object
AttributeQuery
.Modifier and Type | Method and Description |
---|---|
static Map<String,Set<String>> |
getAttributesForFedlet(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 map
Map<String, Set<String>> to the Fedlet |
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 the
AttributeQuery to specified
attribute authority and returns Response coming
from the attribute authority. |
static Response |
sendAttributeQuery(AttributeQuery attrQuery,
String attrAuthorityEntityID,
String realm,
String attrQueryProfile,
String attrProfile,
String binding)
Sends the
AttributeQuery to specified
attribute authority and returns Response coming
from the attribute authority. |
public static Response sendAttributeQuery(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding) throws SAML2Exception
AttributeQuery
to specified
attribute authority and returns Response
coming
from the attribute authority.attrQuery
- the AttributeQuery
objectattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entityattrQueryProfile
- the attribute query profile or null to ignoreattrProfile
- the attribute profilebinding
- the bindingResponse
objectSAML2Exception
- if the operation is not successfulpublic 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 SAML2Exception
AttributeQuery
to specified
attribute authority and returns Response
coming
from the attribute authority.attrQuery
- the AttributeQuery
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 bindingSAML2Exception
- if the operation is not successfulpublic static Map<String,Set<String>> getAttributesForFedlet(String spEntityID, String idpEntityID, String nameIDValue, List<String> attrsList, String attrQueryProfileAlias, String subjectDN) throws SAML2Exception
Map<String, Set<String>>
to the FedletspEntityID
- 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 DNMap
objectSAML2Exception
- if the operation is not successfulCopyright © 2010-2018, ForgeRock All Rights Reserved.