Package com.exonum.binding.common.crypto
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 aPrivateKey
from a byte array.static PrivateKey
fromHexString(String stringKey)
Creates aPrivateKey
from a hexadecimal string.
-
-
-
Method Detail
-
fromBytes
public static PrivateKey fromBytes(byte[] bytes)
Creates aPrivateKey
from a byte array. The array is defensively copied.
-
fromHexString
public static PrivateKey fromHexString(String stringKey)
Creates aPrivateKey
from a hexadecimal string.
-
-