Class ImmutableSignatureWithPublicKey
java.lang.Object
org.xrpl.xrpl4j.crypto.core.signing.ImmutableSignatureWithPublicKey
- All Implemented Interfaces:
SignatureWithPublicKey
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSignatureWithPublicKey
extends Object
implements SignatureWithPublicKey
Immutable implementation of
SignatureWithPublicKey
.
Use the builder to create immutable instances:
ImmutableSignatureWithPublicKey.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableSignatureWithPublicKey
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableSignatureWithPublicKey
.copyOf
(SignatureWithPublicKey instance) Creates an immutable copy of aSignatureWithPublicKey
value.boolean
This instance is equal to all instances ofImmutableSignatureWithPublicKey
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:transactionSignature
,signingPublicKey
.The public key used to create this signature.toString()
Prints the immutable valueSignatureWithPublicKey
with attribute values.A signature for a transaction, verifiable using theSignatureWithPublicKey.signingPublicKey()
.withSigningPublicKey
(PublicKey value) Copy the current immutable object by setting a value for thesigningPublicKey
attribute.Copy the current immutable object by setting a value for thetransactionSignature
attribute.
-
Method Details
-
transactionSignature
A signature for a transaction, verifiable using theSignatureWithPublicKey.signingPublicKey()
.- Specified by:
transactionSignature
in interfaceSignatureWithPublicKey
- Returns:
- A
Signature
containing the transaction signature.
-
signingPublicKey
The public key used to create this signature.- Specified by:
signingPublicKey
in interfaceSignatureWithPublicKey
- Returns:
- A
PublicKey
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
-
withSigningPublicKey
Copy the current immutable object by setting a value for thesigningPublicKey
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for signingPublicKey- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableSignatureWithPublicKey
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:transactionSignature
,signingPublicKey
. -
toString
Prints the immutable valueSignatureWithPublicKey
with attribute values. -
copyOf
Creates an immutable copy of aSignatureWithPublicKey
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 SignatureWithPublicKey instance
-
builder
Creates a builder forImmutableSignatureWithPublicKey
.ImmutableSignatureWithPublicKey.builder() .transactionSignature(org.xrpl.xrpl4j.crypto.core.signing.Signature) // required
transactionSignature
.signingPublicKey(org.xrpl.xrpl4j.crypto.core.keys.PublicKey) // requiredsigningPublicKey
.build();- Returns:
- A new ImmutableSignatureWithPublicKey builder
-