packaging / net.corda.packaging / Cpk / Expanded / from

from

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

Unpacks the CPK resource from inputStream, and parses it as a Cpk.Expanded. The archive is also expanded in expansionLocation. 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