public void store() throws IOException, CertificateException, NoSuchAlgorithmException, KeyStoreException {
  try {
    FileOutputStream keyStoreOStream=new FileOutputStream(keystoreFile);
    ks.store(keyStoreOStream,keystorePass.toCharArray());
    keyStoreOStream.close();
    keyStoreOStream=null;
    if (logger.messageEnabled()) {
      logger.message("Keystore saved in " + keystoreFile);
    }
  }
 catch (  KeyStoreException e) {
    logger.error(e.getMessage());
    throw e;
  }
}

public void store ( ) throws IOException , CertificateException , NoSuchAlgorithmException , KeyStoreException { try { FileOutputStream keyStoreOStream = new FileOutputStream ( keystoreFile ) ; ks . store ( keyStoreOStream , keystorePass . toCharArray ( ) ) ; keyStoreOStream . close ( ) ; keyStoreOStream = null ; if ( logger . messageEnabled ( ) ) { logger . message ( "Keystore saved in " + keystoreFile ) ; } } catch ( KeyStoreException e ) { logger . error ( e . getMessage ( ) ) ; throw e ; } }
store the keystore changes .
