logger.error("Received pins hash is empty!");
return;
}
+ PinMessageDigest hashDigest = pin.getHashDigest();
+ if (hashDigest == null) {
+ logger.error("Received pins message digest is not set!");
+ return;
+ }
+
String configKey = null;
try {
switch (pin.getType()) {
}
Configuration thingConfig = editConfiguration();
- thingConfig.put(configKey, HexUtils.bytesToHex(hash));
+ thingConfig.put(configKey, hashDigest.getMethod() + ":" + HexUtils.bytesToHex(hash));
updateConfiguration(thingConfig);
}