packaging / net.corda.packaging.internal / SignatureCollector

SignatureCollector

class SignatureCollector

Helper class to extract signatures from a jar file, it has to be used calling addEntry on all of the jar's JarEntry after having consumed their entry content from the source java.util.jar.JarInputStream, then certificates property will contain the public keys of the jar's signers.

Constructors

<init>

Helper class to extract signatures from a jar file, it has to be used calling addEntry on all of the jar's JarEntry after having consumed their entry content from the source java.util.jar.JarInputStream, then certificates property will contain the public keys of the jar's signers.

SignatureCollector()

Properties

certificates

val certificates: Set<Certificate>

Functions

addEntry

fun addEntry(jarEntry: JarEntry): Unit

Companion Object Functions

isSignable

fun isSignable(entry: JarEntry): Boolean