Class ImmutableSignatureWithKeyMetadata
java.lang.Object
org.xrpl.xrpl4j.crypto.core.signing.ImmutableSignatureWithKeyMetadata
- All Implemented Interfaces:
SignatureWithKeyMetadata
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSignatureWithKeyMetadata
extends Object
implements SignatureWithKeyMetadata
Immutable implementation of
SignatureWithKeyMetadata
.
Use the builder to create immutable instances:
ImmutableSignatureWithKeyMetadata.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSignatureWithKeyMetadata
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSignatureWithKeyMetadata
.copyOf
(SignatureWithKeyMetadata instance) Creates an immutable copy of aSignatureWithKeyMetadata
value.boolean
This instance is equal to all instances ofImmutableSignatureWithKeyMetadata
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:transactionSignature
,signingKeyMetadata
.Metadata to describe the key used to create this signature.toString()
Prints the immutable valueSignatureWithKeyMetadata
with attribute values.A signature for a transaction, verifiable using theSignatureWithKeyMetadata.signingKeyMetadata()
.Copy the current immutable object by setting a value for thesigningKeyMetadata
attribute.Copy the current immutable object by setting a value for thetransactionSignature
attribute.
-
Method Details
-
transactionSignature
A signature for a transaction, verifiable using theSignatureWithKeyMetadata.signingKeyMetadata()
.- Specified by:
transactionSignature
in interfaceSignatureWithKeyMetadata
- Returns:
- A
Signature
containing the transaction signature.
-
signingKeyMetadata
Metadata to describe the key used to create this signature.- Specified by:
signingKeyMetadata
in interfaceSignatureWithKeyMetadata
- Returns:
- A
KeyMetadata
containing the public key used to sign the transaction.
-
withTransactionSignature
Copy the current immutable object by setting a value for thetransactionSignature
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for transactionSignature- Returns:
- A modified copy of the
this
object
-
withSigningKeyMetadata
Copy the current immutable object by setting a value for thesigningKeyMetadata
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signingKeyMetadata- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableSignatureWithKeyMetadata
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:transactionSignature
,signingKeyMetadata
. -
toString
Prints the immutable valueSignatureWithKeyMetadata
with attribute values. -
copyOf
Creates an immutable copy of aSignatureWithKeyMetadata
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable SignatureWithKeyMetadata instance
-
builder
Creates a builder forImmutableSignatureWithKeyMetadata
.ImmutableSignatureWithKeyMetadata.builder() .transactionSignature(org.xrpl.xrpl4j.crypto.core.signing.Signature) // required
transactionSignature
.signingKeyMetadata(org.xrpl.xrpl4j.crypto.core.KeyMetadata) // requiredsigningKeyMetadata
.build();- Returns:
- A new ImmutableSignatureWithKeyMetadata builder
-