throws XMLSignatureException {
super.engineGetContextFromElement(element);
if (element == null) {
throw new XMLSignatureException("empty");
}
if ((element.getChildNodes() != null)
&& (element.getChildNodes().getLength() > 0)) {
try {
Element nscontext = XMLUtils.createDSctx(element.getOwnerDocument(),
"ds",
Constants.SignatureSpecNS);
Text hmaclength = (Text) XPathAPI.selectSingleNode(element,
"./ds:" + Constants._TAG_HMACOUTPUTLENGTH
+ "/text()", nscontext);
if (hmaclength != null) {
this._HMACOutputLength = Integer.parseInt(hmaclength.getData());
}
} catch (TransformerException ex) {
throw new XMLSignatureException("empty", ex);
}
}
}