Class ImmutableEcDsaSignature
java.lang.Object
org.xrpl.xrpl4j.crypto.signing.bc.ImmutableEcDsaSignature
- All Implemented Interfaces:
EcDsaSignature
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableEcDsaSignature
extends Object
implements EcDsaSignature
Immutable implementation of
EcDsaSignature.
Use the builder to create immutable instances:
ImmutableEcDsaSignature.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableEcDsaSignature. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableEcDsaSignature.static ImmutableEcDsaSignaturecopyOf(EcDsaSignature instance) Creates an immutable copy of aEcDsaSignaturevalue.der()Encode thisEcDsaSignatureto the ASN.1 DER format.booleanThis instance is equal to all instances ofImmutableEcDsaSignaturethat have equal attribute values.inthashCode()Computes a hash code from attributes:r,s,der.r()The r component of thisEcDsaSignature.s()The s component of thisEcDsaSignature.toString()Prints the immutable valueEcDsaSignaturewith attribute values.final ImmutableEcDsaSignaturewithR(BigInteger value) Copy the current immutable object by setting a value for therattribute.final ImmutableEcDsaSignaturewithS(BigInteger value) Copy the current immutable object by setting a value for thesattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xrpl.xrpl4j.crypto.signing.bc.EcDsaSignature
isStrictlyCanonical
-
Method Details
-
r
The r component of thisEcDsaSignature.- Specified by:
rin interfaceEcDsaSignature- Returns:
- A
BigIntegerdenoting the r component of this signature.
-
s
The s component of thisEcDsaSignature.- Specified by:
sin interfaceEcDsaSignature- Returns:
- A
BigIntegerdenoting the r component of this signature.
-
der
Encode thisEcDsaSignatureto the ASN.1 DER format.- Specified by:
derin interfaceEcDsaSignature- Returns:
- An
UnsignedByteArraycontaining the bytes of the encoded signature.
-
withR
Copy the current immutable object by setting a value for therattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r- Returns:
- A modified copy of the
thisobject
-
withS
Copy the current immutable object by setting a value for thesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for s- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableEcDsaSignaturethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:r,s,der. -
toString
Prints the immutable valueEcDsaSignaturewith attribute values. -
copyOf
Creates an immutable copy of aEcDsaSignaturevalue. 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 EcDsaSignature instance
-
builder
Creates a builder forImmutableEcDsaSignature.ImmutableEcDsaSignature.builder() .r(java.math.BigInteger) // requiredr.s(java.math.BigInteger) // requireds.build();- Returns:
- A new ImmutableEcDsaSignature builder
-