@Override
        public String hash(final String apiKeyStr) {
            return DigestUtils.sha256Hex(apiKeyStr.trim())
                    .trim();
        }
Thrown when an API key is created that has the same prefix + hash as another key.
stroom-security/stroom-security-impl/src/main/java/stroom/security/impl/apikey/ApiKeyService.java