Hello,
for one of my clients we want to consume SharePoint 2013 Rest Services.
i've found on internet an example
NTCredentials credentials = new NTCredentials(user, pass, "JAVA-MACHINE-NAME", "DOMAIN"); HttpClient httpClient = new HttpClient(); httpClient.getState().setCredentials(AuthScope.ANY, credentials); httpClient.getParams().setAuthenticationPreemptive(true);
but in HttpClient 4.3.5 setAuthenticationPreemptive is deprecated.
Does someone has an idea about to authenticate the Java application to consume SharePoint 2013 Rest Services?
Thanks