class JarSignatureOperations {

    public List<X509Certificate> readCertificates(String certificatesFilename) {
        try (InputStream certificatesInputStream = getClass().getResourceAsStream(certificatesFilename)) {
            CertificateFactory certificateFactory = CertificateFactory.getInstance(Constants.CERTIFICATE_TYPE_X_509);
            return (List<X509Certificate>) certificateFactory.generateCertificates(certificatesInputStream);
        } catch (CertificateException | IOException e) {
            throw new SLException(e, e.getMessage());
        }
    }

}