Tabnine Logo
HonoClientBasedAuthProvider
Code IndexAdd Tabnine to your IDE (free)

How to use
HonoClientBasedAuthProvider
in
org.eclipse.hono.service.auth.device

Best Java code snippets using org.eclipse.hono.service.auth.device.HonoClientBasedAuthProvider (Showing top 3 results out of 315)

origin: org.eclipse.hono/hono-adapter-mqtt-vertx-base

private Future<DeviceUser> authenticate(final DeviceCredentials credentials, final Span currentSpan) {
  final Future<DeviceUser> result = Future.future();
  usernamePasswordAuthProvider.authenticate(credentials, handler -> {
    if (handler.succeeded()) {
      final DeviceUser authenticatedDevice = handler.result();
      currentSpan.log("device authenticated");
      LOG.debug("successfully authenticated device [tenant-id: {}, auth-id: {}, device-id: {}]",
          authenticatedDevice.getTenantId(), credentials.getAuthId(),
          authenticatedDevice.getDeviceId());
      result.complete(authenticatedDevice);
    } else {
      LOG.debug("Failed to authenticate device [tenant-id: {}, auth-id: {}] ",
          credentials.getTenantId(), credentials.getAuthId(), handler.cause());
      result.fail(handler.cause());
    }
  });
  return result;
}
origin: eclipse/hono

  final String tenantId = tenantTracker.result().getTenantId();
  final SubjectDnCredentials credentials = SubjectDnCredentials.create(tenantId, deviceCert.getSubjectX500Principal());
  getCertificateAuthProvider().authenticate(credentials, currentSpan.context(), completer);
  return null;
}).otherwise(t -> {
origin: eclipse/hono

  getUsernamePasswordAuthProvider().authenticate(credentials, currentSpan.context(), completer);
} else {
  completer.handle(Future.failedFuture(new CredentialException(
org.eclipse.hono.service.auth.deviceHonoClientBasedAuthProvider

Javadoc

An authentication provider for verifying credentials that also supports monitoring by means of health checks.

Most used methods

  • authenticate
    Validates credentials provided by a device against the credentials on record for the device. The cre

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now