packaging / net.corda.packaging / Cpk / Archived

Archived

class Archived : Cpk

Constructors

<init>

Archived(type: Type, cpkHash: SecureHash, cpkManifest: Manifest, cordappJarFileName: String, cordappHash: SecureHash, cordappCertificates: Set<Certificate>, cordappManifest: CordappManifest, libraryDependencies: NavigableMap<String, SecureHash>, dependencies: NavigableSet<Identifier>)

Companion Object Functions

from

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

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