class BearerAuthentication implements ClientRequestFilter {

    @Override
    public void filter(ClientRequestContext requestContext) throws IOException {
        requestSessionCredentialsIfNeeded();

        requestContext
            .getHeaders()
            .putSingle(AUTHORIZATION, session.getToken().toHeaderString());
    }

    public  BearerAuthentication(CredentialsProvider credentialsProvider, LoginClient client);

}