Class KeyStoreManager
java.lang.Object
com.verisign.epp.codec.authtoken.v01.KeyStoreManager
Class to load public and private keys from keystore files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStoreManagerGets the Singleton instance, which will throw theEPPConExceptionif there is an error with the Singleton instantiation.Get private keys that were initialized from JKS fileGet public keys that were initialized from JKS filevoidloadKeyStore(String jksPath, String password) Initialize private keys from the given keystore JKS file.voidloadTrustStore(String jksPath, String password) Initialize public keys from the given truststore JKS file.
-
Method Details
-
getInstance
Gets the Singleton instance, which will throw theEPPConExceptionif there is an error with the Singleton instantiation.- Returns:
- Singleton instance of
KeyStoreManager
-
loadKeyStore
Initialize private keys from the given keystore JKS file.- Parameters:
jksPath- the path of JKS filepassword- the password for JKS file- Throws:
Exception- Error loading keys from JKS file
-
loadTrustStore
Initialize public keys from the given truststore JKS file.- Parameters:
jksPath- the path of JKS filepassword- the password for JKS file- Throws:
Exception- Error loading keys from JKS file
-
getPrivateKeys
Get private keys that were initialized from JKS file- Returns:
-
getPublicKeys
Get public keys that were initialized from JKS file- Returns:
-