io.scalecube.services.auth.Authenticator Maven / Gradle / Ivy
The newest version!
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