com.luigidragone.net.ntlm
Class NTLMTestClient

java.lang.Object
  |
  +--com.luigidragone.net.ntlm.NTLMTestClient

public class NTLMTestClient
extends java.lang.Object

NTLM Test Client.

This is a command line tool that uses NTLM authentication to access to a specified URL. It accepts the following arguments:

  1. the name of the cryptographic provider class (e.g. cryptix.jce.provider.CryptixCrypto);
  2. the URL of the resource to access to.
Authentication information can be specified through the corresponding system properties. The content of the resource will be dumped to standard output.

We want to access to the page http://www.server.com/page.html through an NTLM proxy proxy.domain.com that accepts connection on port 80.
We access to proxy from host HOSTDOMAIN\\HOST with the user USERDOMAIN\\user (password "1234567890"), using Cryptix JCE as cryptographic provider. If all needed classes are accessible through the CLASSPATH we can issue the following command:
  java -Dcom.luigidragone.net.ntlm.host=HOST \
    -Dcom.luigidragone.net.ntlm.hostDomain=HOSTDOMAIN \
    -Dcom.luigidragone.net.ntlm.user=user \
    -Dcom.luigidragone.net.ntlm.userDomain=USERDOMAIN \
    -Dcom.luigidragone.net.ntlm.password=1234567890 \
    -Dhttp.proxyHost=proxy.domain.com \
    -Dhttp.proxyPort=80 \
    com.luigidragone.net.ntlm.NTLMTestClient
      cryptix.jce.provider.CryptixCrypto
      http://www.server.com/page.html
 

Version:
1.0
Author:
Luigi Dragone (luigi@luigidragone.com)

Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)