in src/main/java/org/apache/sling/discovery/base/connectors/ping/TopologyRequestValidator.java [338:351]
private String createTrustHeader(String bodyHash) {
try {
int keyNo = getCurrentKey();
return keyNo + "/" + hmac(keyNo, bodyHash);
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e.getMessage(), e);
} catch (InvalidKeyException e) {
throw new RuntimeException(e.getMessage(), e);
} catch (IllegalStateException e) {
throw new RuntimeException(e.getMessage(), e);
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e.getMessage(), e);
}
}