Class PrivateKey


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

      • fromBytes

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

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