packaging / net.corda.packaging / Cpk / Expanded

Expanded

class Expanded : Cpk

Constructors

<init>

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

Properties

cpkFile

val cpkFile: Path

libraries

val libraries: Set<Path>

mainJar

val mainJar: Path

Functions

copy

fun copy(mainJar: Path = this.mainJar, libraries: Set<Path> = this.libraries, cpkFile: Path = this.cpkFile, type: Type = this.type, cpkHash: SecureHash = this.cpkHash, cpkManifest: Manifest = this.cpkManifest, cordappJarFileName: String = this.cordappJarFileName, cordappHash: SecureHash = this.cordappHash, cordappCertificates: Set<Certificate> = this.cordappCertificates, cordappManifest: CordappManifest = this.cordappManifest, libraryDependencies: NavigableMap<String, SecureHash> = this.libraryDependencies, dependencies: NavigableSet<Identifier> = this.dependencies): Expanded

Companion Object Functions

from

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

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