this.signedInfo = this.xmlSignatureFactory.newSignedInfo(canonicalizationMethod, signatureMethod, Collections.singletonList(reference));
KeyInfoFactory keyInfoFactory = this.xmlSignatureFactory.getKeyInfoFactory();
KeyValue keyValue = keyInfoFactory.newKeyValue(publicKey);
this.keyInfo = keyInfoFactory.newKeyInfo(Collections.singletonList(keyValue));
ByteArrayInputStream inputStream = new ByteArrayInputStream(currentData);
Document document = this.documentBuilderFactory.newDocumentBuilder().parse(inputStream);
DOMSignContext signContext = new DOMSignContext(privateKey, document.getDocumentElement());