Minor amendment in error message
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
This commit is contained in:
parent
c7857e9593
commit
09156bc789
|
|
@ -104,7 +104,7 @@ class CertificateUtils {
|
||||||
|
|
||||||
String acceptedSpiffeId = Security.getProperty(SSL_SPIFFE_ACCEPT_PROPERTY);
|
String acceptedSpiffeId = Security.getProperty(SSL_SPIFFE_ACCEPT_PROPERTY);
|
||||||
if (!StringUtils.equals(spiffeId.get(), acceptedSpiffeId)) {
|
if (!StringUtils.equals(spiffeId.get(), acceptedSpiffeId)) {
|
||||||
String errorMessage = String.format("SPIFFE ID %s is not a trusted", spiffeId.get());
|
String errorMessage = String.format("SPIFFE ID %s is not trusted", spiffeId.get());
|
||||||
LOGGER.log(Level.WARNING, errorMessage);
|
LOGGER.log(Level.WARNING, errorMessage);
|
||||||
throw new CertificateException(errorMessage);
|
throw new CertificateException(errorMessage);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue