All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.services.auth.Authenticator Maven / Gradle / Ivy

package io.scalecube.services.auth;

import reactor.core.publisher.Mono;

/**
 * Service authentication interface to handle authentication of clients to the service. Result of
 * authentication is abstract {@link Principal} with role and permissions.
 */
@FunctionalInterface
public interface Authenticator {

  /**
   * Authenticates service clients by given credentials.
   *
   * @param credentials credentials
   * @return result
   */
  Mono authenticate(byte[] credentials);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy