Class KeyPair

    • Constructor Detail

      • KeyPair

        public KeyPair()
    • Method Detail

      • setPublicKey

        public void setPublicKey​(String publicKey)

        The public key.

        Parameters:
        publicKey - The public key.
      • getPublicKey

        public String getPublicKey()

        The public key.

        Returns:
        The public key.
      • withPublicKey

        public KeyPair withPublicKey​(String publicKey)

        The public key.

        Parameters:
        publicKey - The public key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPrivateKey

        public void setPrivateKey​(String privateKey)

        The private key.

        Parameters:
        privateKey - The private key.
      • getPrivateKey

        public String getPrivateKey()

        The private key.

        Returns:
        The private key.
      • withPrivateKey

        public KeyPair withPrivateKey​(String privateKey)

        The private key.

        Parameters:
        privateKey - The private key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object