Class KeyPair


  • public class KeyPair
    extends Object
    A key pair class that stores public and private keys.
    • Method Detail

      • createKeyPair

        public static KeyPair createKeyPair​(byte[] privateKey,
                                            byte[] publicKey)
        Creates a KeyPair from two byte arrays, representing privateKey and publicKey. All arrays are defensively copied.
      • getPublicKey

        public PublicKey getPublicKey()
        Returns a public key of this pair.
      • getPrivateKey

        public PrivateKey getPrivateKey()
        Returns a private key of this pair.