...
Ejemplo de uso
Code Block |
---|
byte[] data = Files.readAllBytes(Paths.get("PATH_TO_SIGNATURE")); // Cades Signature AlgorithmChecker checker = new AlgorithmChecker .ACBuilder(DigitalSignature.CAdES, data) .build(); DigestAlgorithm algorithm = checker.getAlgorithm(); String name = algorithm.getName(); String javaName = algorithm.getJavaName(); String oid = algorithm.getOid(); String xml = algorithm.getUri(); |