title: SharePoint Authentication REST API Java
body: <p>This is regarding the post: <a href="https://stackoverflow.com/questions/29570383/basic-authentication-from-java-to-sharepoint-2013-rest-api">BASIC authentication from JAVA to Sharepoint 2013 REST API</a></p>
  
  <p>I am facing the same problem.</p>
  
  <p>I tried the solutions provided over here but it did not work out for me.
  I am trying my luck to get the SharePoint Rest API working with Java but to no avail. It is showing the below error response:</p>
  
  <pre><code>Oct 03, 2017 8:23:49 PM org.apache.http.impl.auth.HttpAuthenticator generateAuthResponse
  
  WARNING: NEGOTIATE authentication error:
  No valid credentials provided
  (Mechanism level: No valid credentials provided
  (Mechanism level: Failed to find any Kerberos tgt))
  ----------------------------------------
  HTTP/1.1 401 Processed
  </code></pre>