packaging / net.corda.packaging / Cpk / Archived / from

from

@JvmStatic @JvmOverloads fun from(source: InputStream, cpkLocation: String? = null, verifySignature: Boolean = jarSignatureVerificationEnabledByDefault()): Archived

Unpacks the CPK resource from inputStream, and parses it as a Cpk.Archived. An optional cpkLocation parameter can be provided to improve error reporting (the location will be eventually included in exception messages). Throws PackagingException if a CPK doesn't contain exactly one CorDapp JAR at its root, doesn't contain a manifest, or its dependencies cannot be found or are invalid. If the verifySignature parameter isn't provided, its value is inferred according to the Cpb.DEFAULT_VERIFY_JAR_SIGNATURES_KEY system property