AttachmentWithContext

class AttachmentWithContext(val contractAttachment: ContractAttachment, val contract: ContractClassName, val whitelistedContractImplementations: Map<String, List<AttachmentId>>) : Attachment

Used only for passing to the Attachment constraint verification.

Constructors

Link copied to clipboard
constructor(contractAttachment: ContractAttachment, contract: ContractClassName, whitelistedContractImplementations: Map<String, List<AttachmentId>>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: SecureHash
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

Required for verifying WhitelistedByZoneAttachmentConstraint

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