Class KeyStoreManager

java.lang.Object
com.verisign.epp.codec.authtoken.v01.KeyStoreManager

public class KeyStoreManager extends Object
Class to load public and private keys from keystore files.
  • Method Details

    • getInstance

      public static KeyStoreManager getInstance()
      Gets the Singleton instance, which will throw the EPPConException if there is an error with the Singleton instantiation.
      Returns:
      Singleton instance of KeyStoreManager
    • loadKeyStore

      public void loadKeyStore(String jksPath, String password) throws Exception
      Initialize private keys from the given keystore JKS file.
      Parameters:
      jksPath - the path of JKS file
      password - the password for JKS file
      Throws:
      Exception - Error loading keys from JKS file
    • loadTrustStore

      public void loadTrustStore(String jksPath, String password) throws Exception
      Initialize public keys from the given truststore JKS file.
      Parameters:
      jksPath - the path of JKS file
      password - the password for JKS file
      Throws:
      Exception - Error loading keys from JKS file
    • getPrivateKeys

      public Map<String,PrivateKey> getPrivateKeys()
      Get private keys that were initialized from JKS file
      Returns:
    • getPublicKeys

      public Map<String,PublicKey> getPublicKeys()
      Get public keys that were initialized from JKS file
      Returns: