/** * This method allows to add all {@code X509CRL} from one {@code OfflineCRLSource} to this one. If the * {@code X509CRL} exists already within the current source then it is * ignored. * * @param offlineCRLSource * the source to be added */ public void addAll(final OfflineCRLSource offlineCRLSource) { for (Entry<String, byte[]> entry : offlineCRLSource.crlsMap.entrySet()) { super.addCRLBinary(entry.getKey(), entry.getValue()); } }
protected void addCRLBinary(byte[] binaries) { String base64Digest = Utils.toBase64(DSSUtils.digest(DigestAlgorithm.SHA256, binaries)); addCRLBinary(base64Digest, binaries); }