/** * Asserts that a device is registered with a given tenant and is enabled. * <p> * This default implementation simply returns the result of {@link #assertRegistration(String, String, Handler)}. * * @param tenantId The tenant the device belongs to. * @param deviceId The ID of the device to get the assertion for. * @param span The active OpenTracing span for this operation. It is not to be closed in this method! * An implementation should log (error) events on this span and it may set tags and use this span as the * parent for any spans created in this method. * @param resultHandler The handler to invoke with the result of the operation. * The <em>status</em> will be * <ul> * <li><em>200 OK</em> if a device with the given ID is registered for * the tenant and its <em>enabled</em> property is {@code true}. * The <em>payload</em> will contain a JWT token asserting the registration status.</li> * <li><em>404 Not Found</em> if no device with the given identifier is * registered for the tenant or its <em>enabled</em> property is {@code false}.</li> * </ul> * @throws NullPointerException if any of the parameters is {@code null}. * @see <a href="https://www.eclipse.org/hono/api/device-registration-api/#assert-device-registration"> * Device Registration API - Assert Device Registration</a> */ default void assertRegistration(final String tenantId, final String deviceId, final Span span, final Handler<AsyncResult<RegistrationResult>> resultHandler) { assertRegistration(tenantId, deviceId, resultHandler); }
final Span span, final Handler<AsyncResult<RegistrationResult>> resultHandler) { assertRegistration(tenantId, deviceId, gatewayId, resultHandler);