Class EllipticCurvePublicKey

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • usesCompressedForm

        public 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).
        Returns:
        true if the public key uses the compressed form, or false if it uses the uncompressed form.
      • getXCoordinate

        public java.math.BigInteger getXCoordinate()
        Retrieves the value of the x coordinate. This will always be available.
        Returns:
        The value of the x coordinate.
      • getYCoordinate

        public java.math.BigInteger getYCoordinate()
        Retrieves the value of the y coordinate. This will only be available if the key was encoded in the uncompressed form.
        Returns:
        The value of the y coordinate, or null if the key was encoded in the compressed form.
      • yCoordinateIsEven

        public boolean yCoordinateIsEven()
        Indicates whether the y coordinate is even or odd.
        Returns:
        true if the y coordinate is even, or false if the y coordinate is odd.
      • toString

        public void toString​(java.lang.StringBuilder buffer)
        Appends a string representation of this decoded public key to the provided buffer.
        Specified by:
        toString in class DecodedPublicKey
        Parameters:
        buffer - The buffer to which the information should be appended.