public CompletionStage authenticate()

in folsom/src/main/java/com/spotify/folsom/authenticate/AsciiAuthenticationValidator.java [45:63]


  public CompletionStage<RawMemcacheClient> authenticate(final RawMemcacheClient client) {

    final GetRequest request = new GetRequest(EXAMPLE_KEY, false);

    return client
        .connectFuture()
        .thenCompose(
            ignored ->
                client
                    .send(request)
                    .handle(
                        (status, throwable) -> {
                          if (throwable == null) {
                            return client;
                          } else {
                            throw new CompletionException(unwrap(throwable));
                          }
                        }));
  }