public class WhitelistedByZoneAttachmentConstraint implements AttachmentConstraint
An interface AttachmentConstraint
that verifies that the hash of the attachment is in the network parameters whitelist.
See: net.corda.core.node.NetworkParameters.whitelistedContractImplementations
It allows for centralized control over the cordapps that can be used.
interface AttachmentConstraint
Modifier and Type | Field and Description |
---|---|
static WhitelistedByZoneAttachmentConstraint |
INSTANCE
An
interface AttachmentConstraint that verifies that the hash of the attachment is in the network parameters whitelist.
See: net.corda.core.node.NetworkParameters.whitelistedContractImplementations
It allows for centralized control over the cordapps that can be used. |
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfiedBy(Attachment attachment)
Returns whether the given contract attachment can be used with the
interface ContractState associated with this constraint object. |
isSatisfiedBy
public static WhitelistedByZoneAttachmentConstraint INSTANCE
An interface AttachmentConstraint
that verifies that the hash of the attachment is in the network parameters whitelist.
See: net.corda.core.node.NetworkParameters.whitelistedContractImplementations
It allows for centralized control over the cordapps that can be used.
interface AttachmentConstraint
public boolean isSatisfiedBy(Attachment attachment)
Returns whether the given contract attachment can be used with the interface ContractState
associated with this constraint object.
interface ContractState