class LocalRepoKeyStore {

    public void signZip(File input, File output) {
        try {
            ZipSigner zipSigner = new ZipSigner();

            X509Certificate cert = (X509Certificate) keyStore.getCertificate(INDEX_CERT_ALIAS);

            KeyPair kp = getKerplappKeypair();
            PrivateKey priv = kp.getPrivate();

            zipSigner.setKeys("kerplapp", cert, priv, DEFAULT_SIG_ALG, null);
            zipSigner.signZip(input.getAbsolutePath(), output.getAbsolutePath());

        } catch (ClassNotFoundException | IllegalAccessException | InstantiationException | GeneralSecurityException | IOException e) {
            Log.e(TAG, "Unable to sign local repo index", e);
        }
    }

    private  LocalRepoKeyStore(Context context);

}