@Override
public void removeAuth(String id) throws InvalidIDException {
String authToken = cachingTableAuthIdToAuthToken.get(id);
if (authToken == null)
throw new InvalidIDException("An Authorization with that ID [" + id + "] doesn't exist");
cachingTableAuthIdToAuthToken.remove(id);
Auth auth = cachingTableAuth.remove(authToken);
AuthDetail authDetail = cachingTableAuthDetails.remove(authToken);
if (auth == null) {
throw new InvalidIDException("An Authorization with that token doesn't exist");
}
if (authDetail != null) {
if (authDetail.getType() == NBAuthType.IP_WHITE_LIST) {
for (String ip : authDetail.getWhiteListedIps()) {