io.scalecube.services.auth.Authenticator Maven / Gradle / Ivy
package io.scalecube.services.auth;
import io.scalecube.services.api.ServiceMessage;
import reactor.core.publisher.Mono;
/**
* Authenticator.
*
* @param principal type
*/
public interface Authenticator
{
/**
* Returns principal by given credentials.
*
* @param message service message
* @return async result with obtained principal
*/
Mono
authenticate(ServiceMessage message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy