private static void createKeyStore() throws KeyStoreException, IOException {
  if (sKeyStore != null) {
    return;
  }
  try {
    sKeyStore=KeyStore.getInstance(getKeystoreType());
synchronized (KeyStoreManager.class) {
      sKeyStore.load(null,KEYSTORE_PASSWORD.toCharArray());
    }
    saveKeyStoreToFile(sKeyStore);
  }
 catch (  NoSuchAlgorithmException e) {
    throw new KeyStoreException("Unable to create key store!",e);
  }
catch (  CertificateException e) {
    throw new KeyStoreException("Unable to create key store!",e);
  }
}

private static void createKeyStore ( ) throws KeyStoreException , IOException { if ( sKeyStore != null ) { return ; } try { sKeyStore = KeyStore . getInstance ( getKeystoreType ( ) ) ; synchronized ( KeyStoreManager . class ) { sKeyStore . load ( null , KEYSTORE_PASSWORD . toCharArray ( ) ) ; } saveKeyStoreToFile ( sKeyStore ) ; } catch ( NoSuchAlgorithmException e ) { throw new KeyStoreException ( "Unable to create key store!" , e ) ; } catch ( CertificateException e ) { throw new KeyStoreException ( "Unable to create key store!" , e ) ; } }
create the rcs keystore
