JarIndexVerifier

abstract class JarIndexVerifier(jarFile: File, expectedSigningCertificate: String?, expectedSigningFingerprint: String?)

Inheritors

Constructors

Link copied to clipboard
constructor(jarFile: File, expectedSigningCertificate: String?, expectedSigningFingerprint: String?)

Functions

Link copied to clipboard
fun <T> getStreamAndVerify(certificateAndStream: (InputStream) -> T): Pair<String, T>

Opens the jarFile, verifies it and then gets signing certificate as well as the index stream for further processing. The caller does not need to close the stream.