Package org.ondc

Class KeyUtil.DHKeyPair

java.lang.Object
org.ondc.KeyUtil.DHKeyPair
Enclosing class:
KeyUtil

public static class KeyUtil.DHKeyPair extends Object
POJO class for storing private and public keys.
  • Constructor Details

    • DHKeyPair

      public DHKeyPair(KeyPair keyPair)
      Constructor
      Parameters:
      keyPair - Instance of java.security.KeyPair Class.
  • Method Details

    • getPublicKey

      public String getPublicKey()
      Gets the Public Key.
      Returns:
      Public Key.
    • getPrivateKey

      public String getPrivateKey()
      Gets the Private Key.
      Returns:
      Private Key.
    • toString

      public String toString()
      String Formatting.
      Overrides:
      toString in class Object