* @param rpUrl Relying party url
* @return A set of OpenIDUserRPDO, corresponding to the provided user name and RP url.
* @throws IdentityException
*/
public OpenIDUserRPDO getOpenIDUserRP(String userName, String rpUrl) throws IdentityException {
OpenIDUserRPDO rp = null;
Association[] assoc = null;
if (log.isDebugEnabled()) {
log.debug("Retreiving OpenID user relying party");
}
try {
if (registry.resourceExists(RegistryConstants.PROFILES_PATH + userName)) {
assoc = registry.getAssociations(RegistryConstants.PROFILES_PATH + userName,
IdentityRegistryResources.ASSOCIATION_USER_OPENID_RP);
for (Association association : assoc) {
rp = resourceToObject(registry.get(association.getDestinationPath()));
rp.setUserName(userName);
if (rp.getRpUrl().equals(rpUrl)) {
return rp;
}
}
}
} catch (RegistryException e) {