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

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

The newest version!
package io.scalecube.services.auth;

import java.util.List;
import reactor.core.publisher.Mono;

/**
 * Supplier of credentials for authentication with remote service. Implementations can use {@code
 * byte[0]} to denote empty credentials.
 */
@FunctionalInterface
public interface CredentialsSupplier {

  /**
   * Obtains credentials for the given service role.
   *
   * @param service logical service name
   * @param serviceRoles allowed roles on the service (optional)
   * @return credentials
   */
  Mono credentials(String service, List serviceRoles);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy