public class AttributeQueryUtil extends Object
AttributeQuery
.Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getAttributeMapForFedlet(String spEntityID,
String idpEntityID,
String nameIDValue,
List<String> attrsList,
String attrQueryProfileAlias,
String subjectDN)
|
static String |
getAttributeQueryProfile(String attrQueryProfileAlias)
Converts attribute query profile alias to attribute query profile.
|
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 String |
getIdentity(AttributeQuery attrQuery,
String attrAuthorityEntityID,
String realm) |
static String |
getIdentityFromDataStoreX509Subject(AttributeQuery attrQuery,
String attrAuthorityEntityID,
String realm) |
static List |
getUserAttributes(String userId,
AttributeQuery attrQuery,
String attrAuthorityEntityID,
String realm) |
static Response |
processAttributeQuery(AttributeQuery attrQuery,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String attrAuthorityEntityID,
String realm,
String attrQueryProfileAlias)
Processes the
AttributeQuery coming
from a requester. |
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. |
static void |
signResponse(Response response,
String attrAuthorityEntityID,
String realm,
boolean includeCert) |
static void |
validateEntityRequester(AttributeQuery attrQuery,
String attrAuthorityEntityID,
String realm) |
static void |
verifyAttrQuerySignature(AttributeQuery attrQuery,
String attrAuthorityEntityID,
String realm)
Checks if the attribute query signature is valid.
|
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 Response processAttributeQuery(AttributeQuery attrQuery, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String attrAuthorityEntityID, String realm, String attrQueryProfileAlias) throws SAML2Exception
AttributeQuery
coming
from a requester.attrQuery
- the AttributeQuery
objectrequest
- the HttpServletRequest
objectresponse
- the HttpServletResponse
objectattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entityattrQueryProfileAlias
- the attribute query profile aliasResponse
objectSAML2Exception
- if the operation is not successfulpublic static String getAttributeQueryProfile(String attrQueryProfileAlias)
attrQueryProfileAlias
- attribute query profile aliaspublic static void validateEntityRequester(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
SAML2Exception
public static void verifyAttrQuerySignature(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
attrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entitySAML2Exception
- if the attribute query signature is not valid.public static String getIdentityFromDataStoreX509Subject(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
SAML2Exception
public static String getIdentity(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
SAML2Exception
public static List getUserAttributes(String userId, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
SAML2Exception
public static void signResponse(Response response, String attrAuthorityEntityID, String realm, boolean includeCert) throws SAML2Exception
SAML2Exception
public static Map<String,String> getAttributeMapForFedlet(String spEntityID, String idpEntityID, String nameIDValue, List<String> attrsList, String attrQueryProfileAlias, String subjectDN) throws SAML2Exception
Map<String, 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 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–2025 Open Identity Platform Community. All rights reserved.