The home secretary's comments follow calls for details to be released of two men charged over an alleged rape.