Refactoring
This commit is contained in:
parent
5286cb2648
commit
df18155c81
@ -255,7 +255,7 @@ public class DefaultTransportApiService implements TransportApiService {
|
||||
return getEmptyTransportApiResponseFuture();
|
||||
}
|
||||
} else if (deviceProfile != null) {
|
||||
log.warn("[{}] Device Profile provision configuration mismatched: expected {}, actual {}", deviceProfile.getName(), X509_CERTIFICATE_CHAIN, deviceProfile.getProvisionType());
|
||||
log.warn("[{}] Device Profile provision configuration mismatched: expected {}, actual {}", deviceProfile.getId(), X509_CERTIFICATE_CHAIN, deviceProfile.getProvisionType());
|
||||
}
|
||||
}
|
||||
return getEmptyTransportApiResponseFuture();
|
||||
|
||||
@ -165,6 +165,7 @@ public class MqttSslHandlerProvider {
|
||||
});
|
||||
latch.await(10, TimeUnit.SECONDS);
|
||||
if (!clientDeviceCertValue.equals(credentialsBodyHolder[0])) {
|
||||
log.debug("Failed to find credentials for device certificate chain: {}", chain);
|
||||
if (chain.length == 1) {
|
||||
throw new CertificateException("Invalid Device Certificate");
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user