public class SignatureAttachmentConstraint implements AttachmentConstraint
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
Constructor and Description |
---|
SignatureAttachmentConstraint(java.security.PublicKey key)
An
interface AttachmentConstraint that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints |
Modifier and Type | Method and Description |
---|---|
java.security.PublicKey |
component1()
A
|
SignatureAttachmentConstraint |
copy(java.security.PublicKey key)
An
interface AttachmentConstraint that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints |
boolean |
equals(java.lang.Object p) |
java.security.PublicKey |
getKey()
A
|
int |
hashCode() |
boolean |
isSatisfiedBy(Attachment attachment)
Returns whether the given contract attachment can be used with the
interface ContractState associated with this constraint object. |
java.lang.String |
toString() |
isSatisfiedBy
public SignatureAttachmentConstraint(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(Attachment attachment)
Returns whether the given contract attachment can be used with the interface ContractState
associated with this constraint object.
interface ContractState
public java.security.PublicKey getKey()
A
PublicKey that must be fulfilled by the owning keys of the attachment's signing parties.
public java.security.PublicKey component1()
A
PublicKey that must be fulfilled by the owning keys of the attachment's signing parties.
public SignatureAttachmentConstraint copy(java.security.PublicKey key)
An interface AttachmentConstraint
that verifies that the attachment has signers that fulfil the provided PublicKey.
See: Signature Constraints
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)