Class PublicKey

java.lang.Object
com.exonum.binding.common.crypto.AbstractKey
com.exonum.binding.common.crypto.PublicKey

public final class PublicKey
extends AbstractKey
Represent a public key in a digital signature system.
  • Method Summary

    Modifier and Type Method Description
    static PublicKey fromBytes​(byte[] bytes)
    Creates a PublicKey from a byte array.
    static PublicKey fromHexString​(java.lang.String stringKey)
    Creates a PublicKey from a hexadecimal string.

    Methods inherited from class com.exonum.binding.common.crypto.AbstractKey

    equals, hashCode, keyFunnel, size, toBytes, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • fromBytes

      public static PublicKey fromBytes​(byte[] bytes)
      Creates a PublicKey from a byte array. The array is defensively copied.
    • fromHexString

      public static PublicKey fromHexString​(java.lang.String stringKey)
      Creates a PublicKey from a hexadecimal string.