(extensions in package net.corda.packaging.internal)
A parsed CorDapp JAR Manifest providing access to CorDapp-specific attributes.
Thrown if an exception occurs while parsing main cordapp Manifest .
Contains information on a CPB.
Contains information on a Cpk.
Thrown if an exception occurs while parsing CPK dependencies.
Thrown if an error occurs while resolving CPK dependencies.
Thrown if an invalid jar signature is detected.
Input stream that extract a jar archive in the provided destination while reading it
Information on a contract or workflow CorDapp in a CordappManifest.
Thrown if an exception occurs while reading a CPK/CPB file.
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.
Parameters for signing a jar file:
keyStore the keystore containing the private key
keyAlias alias name of the private key inside keyStore password (if any) for the private key inside the keyStore
InputStream that also writes its content to the provided OutputStream while reading
InputStream wrapper that prevents it from being closed, useful to pass an InputStream instance
to a method that closes the stream before it has been fully consumed
(and whose remaining content is still needed by the caller)
OutputStream wrapper that prevents it from being closed, useful to pass an OutputStream instance
to a method that closes the stream before it has been finalized by the caller
Input stream that extract a zip archive in the provided destination while reading it
Helper class to ease the creation of a copy of zip archive,
editing some of its ZipEntry