public void registerShareKey(String shareKey){
  shareKeys.add(shareKey);
}

public void registerShareKey ( String shareKey ) { shareKeys . add ( shareKey ) ; }
registers a new share key such that the connection associated with that share key is accessible through this directory . the share key will be automatically de - registered when it is no longer valid .
