@FunctionalInterface public interface GrpcAuthenticationReader
@Nullable Authentication readAuthentication(ServerCall<?,?> call, Metadata headers) throws AuthenticationException
Authenticationinformation from the given call and metadata.
Note: Implementations are free to throw an
AuthenticationException if no credentials could be
found in the call. If an exception is thrown by an implementation then the authentication attempt should be
considered as failed and no subsequent
GrpcAuthenticationReaders should be called.
call- The call to get that send the request.
headers- The metadata/headers as sent by the client.
AuthenticationException- If the authentication details are malformed or incomplete and thus the authentication attempt should be aborted.