ORIGINAL_HASH

En las firmas de tipo DETACHED, podemos indicarle cual va a ser el hash del documento original.

Java

Policy policy = new Policy();
policy.addParameter(PolicyParams.ORIGINAL_HASH.getKey(), Base64.encodeBase64(DigestUtils.sha(new ByteArrayInputStream(datosOriginales))));

.Net

policy policy = PolicyUtil.newPolicy(typeFormatSign.PADES_BASIC, typeSign.ATTACHED);
PolicyUtil.AddParameter(policy, PolicyParams.ORIGINAL_HASH,datosOriginales);

results matching ""

    No results matching ""