ContractAttachment

An Attachment which represents a contract JAR.

Constructors

Link copied to clipboard
constructor(attachment: Attachment, contract: ContractClassName, additionalContracts: Set<ContractClassName> = emptySet(), uploader: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Additional contract names contained within the JAR.

Link copied to clipboard
Link copied to clipboard

The attachment representing the contract JAR

Link copied to clipboard

The contract name contained within the JAR. A Contract attachment has to contain at least 1 contract.

Link copied to clipboard
Link copied to clipboard
open override val id: SecureHash
Link copied to clipboard
Link copied to clipboard
open override val signerKeys: List<PublicKey>

The keys that have correctly signed the whole attachment. Can be empty, for example non-contract attachments won't be necessarily be signed.

Link copied to clipboard
open override val signers: List<Party>

The parties that have correctly signed the whole attachment. Even though this returns a list of party objects, it is not required that these parties exist on the network, but rather they are a mapping from the signing key to the X.500 name.

Link copied to clipboard
open override val size: Int

Attachment size in bytes.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun extractFile(path: String, outputTo: OutputStream): <Error class: unknown class>

Finds the named file case insensitively and copies it to the output stream.

Link copied to clipboard
Link copied to clipboard
open override fun open(): InputStream
Link copied to clipboard
open override fun openAsJAR(): JarInputStream
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String