AttachmentConstraint
Keywords: net.corda.core.contracts.AttachmentConstraint interface
Date: 2023-09-18

net.corda.core.contracts

## Interface AttachmentConstraint

- All Known Implementing Classes:
    AlwaysAcceptAttachmentConstraint, AutomaticHashConstraint, AutomaticPlaceholderConstraint, HashAttachmentConstraint, SignatureAttachmentConstraint, WhitelistedByZoneAttachmentConstraint

      @DoNotImplement
      public AttachmentConstraint

  Constrain which contract-code-containing attachment can be used with a `interface Contract`.

  See Also:
    `interface Contract`

- - ### Constructor Detail

    - #### AttachmentConstraint

          public AttachmentConstraint()

  - ### Method Detail

    - #### isSatisfiedBy

          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`