XPathAPI.selectNodeList(this._constructionElement,
"./ds:" + Constants._TAG_RSAKEYVALUE,
nscontext);
if (rsa.getLength() > 0) {
RSAKeyValue kv = new RSAKeyValue((Element) rsa.item(0),
this._baseURI);
return kv.getPublicKey();
}
NodeList dsa =
XPathAPI.selectNodeList(this._constructionElement,
"./ds:" + Constants._TAG_DSAKEYVALUE,
nscontext);
if (dsa.getLength() > 0) {
DSAKeyValue kv = new DSAKeyValue((Element) dsa.item(0),
this._baseURI);
return kv.getPublicKey();
}
} catch (TransformerException ex) {}
return null;
}