super.buildElement(element, reissueRequest);
OMElement reissueKeyBindingElement = element
.getFirstChildWithName(XKMS2Constants.Q_ELEM_REISSUE_KEY_BINDING);
if (reissueKeyBindingElement == null) {
throw new XKMSException("ReissueKeyBinding element not found");
}
reissueRequest
.setReissueKeyBinding((ReissueKeyBinding) ReissueKeyBindingBuilder.INSTANCE
.buildElement(reissueKeyBindingElement));
OMElement proofOfPossessionElem = element
.getFirstChildWithName(XKMS2Constants.Q_ELEM_PROOF_OF_POSSESSION);
if (proofOfPossessionElem != null) {
OMElement xmlSigElem = proofOfPossessionElem
.getFirstChildWithName(XKMS2Constants.Q_ELEM_XML_SIG);
XMLSignature signature;
try {
signature = new XMLSignature((Element) xmlSigElem, "");
reissueRequest.setProofOfPocession(signature);
} catch (XMLSignatureException e) {
throw new XKMSException(e);
} catch (XMLSecurityException e) {
throw new XKMSException(e);
}
}
return reissueRequest;
}