WhitelistedByZoneAttachmentConstraint
Keywords: net.corda.core.contracts.WhitelistedByZoneAttachmentConstraint class
Date: 2023-09-18

net.corda.core.contracts

## Class WhitelistedByZoneAttachmentConstraint

- net.corda.core.contracts.WhitelistedByZoneAttachmentConstraint

- All Implemented Interfaces:
    AttachmentConstraint

      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.

  See Also:
    `interface AttachmentConstraint`

- - ### Field Detail

    - #### INSTANCE

          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.

      See Also:
        `interface AttachmentConstraint`

  - ### Method Detail

    - #### isSatisfiedBy

          public boolean isSatisfiedBy(@NotNull
                                       Attachment attachment)

      Returns whether the given contract attachment can be used with the `interface ContractState` associated with this constraint object.

      See Also:
        `interface ContractState`