@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class EllipticCurvePublicKey extends DecodedPublicKey
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getXCoordinate()
Retrieves the value of the x coordinate.
|
java.math.BigInteger |
getYCoordinate()
Retrieves the value of the y coordinate.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this decoded public key to the provided
buffer.
|
boolean |
usesCompressedForm()
Indicates whether the public key uses the compressed form (which merely
contains the x coordinate and an indication as to whether the y coordinate
is even or odd) or the uncompressed form (which contains both the x and
y coordinate values).
|
boolean |
yCoordinateIsEven()
Indicates whether the y coordinate is even or odd.
|
toStringpublic boolean usesCompressedForm()
true if the public key uses the compressed form, or
false if it uses the uncompressed form.@NotNull public java.math.BigInteger getXCoordinate()
@Nullable public java.math.BigInteger getYCoordinate()
null if the key was
encoded in the compressed form.public boolean yCoordinateIsEven()
true if the y coordinate is even, or false if the
y coordinate is odd.public void toString(@NotNull java.lang.StringBuilder buffer)
toString in class DecodedPublicKeybuffer - The buffer to which the information should be appended.