if (list.isEmpty()) {
throw new XKMSException(XKMSException.NO_MATCH, "KeyNotFound");
}
LocateResult result = XKMSUtil.createLocateResult();
buildResultType((RequestAbstractType) locate, (ResultType) result);
for (Iterator iterator = list.iterator(); iterator.hasNext();) {
String alias = (String) iterator.next();
X509Certificate[] certs = getCertificates(alias);
UnverifiedKeyBinding ukb = new UnverifiedKeyBinding();
addKeyInfo(locate.getRespondWith(), alias, certs, ukb);
addKeyUsage(certs[0], ukb);
result.addUnverifiedKeyBinding(ukb);
}
return result;
} catch (XKMSException ex) {
LocateResult result = XKMSUtil.createLocateResult();
buildFault(locate, result, ex);
return result;
}
}