public KeyStoreHistory(KeyStore keyStore,String name,Password password,Provider explicitProvider){
  this.name=name;
  this.explicitProvider=explicitProvider;
  KeyStoreType type=KeyStoreType.resolveJce(keyStore.getType());
  if (type.isFileBased()) {
    initialState=new KeyStoreState(this,keyStore,password);
  }
 else {
    initialState=new AlwaysIdenticalKeyStoreState(this,keyStore,password);
  }
  currentState=initialState;
}

public KeyStoreHistory ( KeyStore keyStore , String name , Password password , Provider explicitProvider ) { this . name = name ; this . explicitProvider = explicitProvider ; KeyStoreType type = KeyStoreType . resolveJce ( keyStore . getType ( ) ) ; if ( type . isFileBased ( ) ) { initialState = new KeyStoreState ( this , keyStore , password ) ; } else { initialState = new AlwaysIdenticalKeyStoreState ( this , keyStore , password ) ; } currentState = initialState ; }
create a new history for an unsaved keystore .
