Java KeyStore

/* The following code is used for symmetric encryption */
/*Open Key Store */

public KeyStore openKeyStore(String KeyStoreName, String keyStorePassword){
KeyStore ks = KeyStore.getInstance(“JCEKS”);
fis = new java.io.FileInputStream(KeyStoreName);
ks.load(fis, keyStorePassword.toCharArray());
return ks;
}

Leave a Reply