initial commit

This commit is contained in:
jomu
2015-02-02 00:45:40 +00:00
parent 344d954abd
commit a300452688
17 changed files with 3417 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package de.muehlencord.shared.sharepoint.api;
import de.muehlencord.shared.sharepoint.api.sites.SPSite;
import java.net.MalformedURLException;
import java.net.URL;
import org.junit.Test;
/**
*
* @author jomu
*/
public class NtlmAuthenticatorTest {
@Test
public void testAuthentication() throws MalformedURLException {
// Create NTLM v2 credentials (authenticator) & setup context
NtlmAuthenticator credentials = new NtlmAuthenticator("DOMAIN", "username", "password");
SPContext context = new SPContext(new URL ("http://localhost:8088/"), credentials, SPVersion.SP2010);
// Connect to Sharepoint
SPSite instance = new SPSite(context);
}
}