packaging / net.corda.packaging / Cpb

Cpb

sealed class Cpb

Contains information on a CPB.

Types

Archived

class Archived : Cpb

Expanded

class Expanded : Cpb

Identifier

An opaque object used to uniquely identify a Cpb archive, currently equal to its hash.

data class Identifier

MetaData

data class MetaData

Properties

identifier

val identifier: Identifier

metadata

val metadata: MetaData

Companion Object Properties

DEFAULT_VERIFY_JAR_SIGNATURES_KEY

const val DEFAULT_VERIFY_JAR_SIGNATURES_KEY: String

fileExtension

const val fileExtension: String

Companion Object Functions

assemble

Creates a new a Cpb archive containing the CPKs specified in cpkFiles and dumps it to outputStream, this method will also attempt to resolve the all of the included Cpk dependencies and raises DependencyResolutionException if any dependency is not met. If useSignatures is false, the CPK signatures won't be verified and won't not be taken in consideration in the dependency resolution (an unsigned CPK or a CPK signed by a different key will be considered an equally good candidate to meet a dependency). A metadataReader can also be specified to include an HOCON configuration file with metadata in the generated archive.

fun assemble(destination: OutputStream, cpkFiles: Iterable<Path>, cpkArchives: Iterable<Path> = emptyList(), metadataReader: Reader? = null, signingParams: SigningParameters? = null, useSignatures: Boolean = jarSignatureVerificationEnabledByDefault()): Unit