public class SignatureAttachmentConstraint implements AttachmentConstraint
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
public static net.corda.core.contracts.SignatureAttachmentConstraint.Companion Companion
public SignatureAttachmentConstraint(@NotNull java.security.PublicKey key)
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
key
- A PublicKey that must be fulfilled by the owning keys of the attachment's signing parties.interface AttachmentConstraint
,
PublicKey,
Signature Constraintspublic boolean isSatisfiedBy(@NotNull Attachment attachment)
Returns whether the given contract attachment can be used with the interface ContractState
associated with this constraint object.
interface ContractState
@NotNull public java.security.PublicKey getKey()
A
PublicKey that must be fulfilled by the owning keys of the attachment's signing parties.
@NotNull public java.security.PublicKey component1()
A
PublicKey that must be fulfilled by the owning keys of the attachment's signing parties.
@NotNull public SignatureAttachmentConstraint copy(@NotNull java.security.PublicKey key)
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
@NotNull public java.lang.String toString()
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
public int hashCode()
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
public boolean equals(@Nullable java.lang.Object p)
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints