Class PrivateKey

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

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

    Modifier and Type Method Description
    static PrivateKey fromBytes​(byte[] bytes)
    Creates a PrivateKey from a byte array.
    static PrivateKey fromHexString​(java.lang.String stringKey)
    Creates a PrivateKey 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 PrivateKey fromBytes​(byte[] bytes)
      Creates a PrivateKey from a byte array. The array is defensively copied.
    • fromHexString

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