|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwt.HTTP.Proxy.NTLM
An implementation of Microsoft's proprietary NTLM authentication protocol. This code was derived from Eric Glass's work, and is copyright as follows: Copyright (c) 2003 Eric Glass (eglass1 at comcast.net). Permission to use, copy, modify, and distribute this document for any purpose and without any fee is hereby granted, provided that the above copyright notice and this list of conditions appear in all copies. The most current version of this document may be obtained from http://davenport.sourceforge.net/ntlm.html .
Field Summary | |
static byte[] |
type1
|
Constructor Summary | |
HTTP.Proxy.NTLM()
|
Method Summary | |
static byte[] |
getLMResponse(java.lang.String password,
byte[] challenge)
Calculates the LM Response for the given challenge, using the specified password. |
static byte[] |
getLMv2Response(java.lang.String target,
java.lang.String user,
java.lang.String password,
byte[] challenge,
byte[] clientChallenge)
Calculates the LMv2 Response for the given challenge, using the specified authentication target, username, password, and client challenge. |
static byte[] |
getNTLM2SessionResponse(java.lang.String password,
byte[] challenge,
byte[] clientChallenge)
Calculates the NTLM2 Session Response for the given challenge, using the specified password and client challenge. |
static byte[] |
getNTLMResponse(java.lang.String password,
byte[] challenge)
Calculates the NTLM Response for the given challenge, using the specified password. |
static byte[] |
getNTLMv2Response(java.lang.String target,
java.lang.String user,
java.lang.String password,
byte[] targetInformation,
byte[] challenge,
byte[] clientChallenge)
Calculates the NTLMv2 Response for the given challenge, using the specified authentication target, username, password, target information block, and client challenge. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte[] type1
Constructor Detail |
public HTTP.Proxy.NTLM()
Method Detail |
public static byte[] getNTLMResponse(java.lang.String password, byte[] challenge) throws java.lang.Exception
password
- The user's password.challenge
- The Type 2 challenge from the server.
java.lang.Exception
public static byte[] getLMResponse(java.lang.String password, byte[] challenge) throws java.lang.Exception
password
- The user's password.challenge
- The Type 2 challenge from the server.
java.lang.Exception
public static byte[] getNTLMv2Response(java.lang.String target, java.lang.String user, java.lang.String password, byte[] targetInformation, byte[] challenge, byte[] clientChallenge) throws java.lang.Exception
target
- The authentication target (i.e., domain).user
- The username.password
- The user's password.targetInformation
- The target information block from the Type 2
message.challenge
- The Type 2 challenge from the server.clientChallenge
- The random 8-byte client challenge.
java.lang.Exception
public static byte[] getLMv2Response(java.lang.String target, java.lang.String user, java.lang.String password, byte[] challenge, byte[] clientChallenge) throws java.lang.Exception
target
- The authentication target (i.e., domain).user
- The username.password
- The user's password.challenge
- The Type 2 challenge from the server.clientChallenge
- The random 8-byte client challenge.
java.lang.Exception
public static byte[] getNTLM2SessionResponse(java.lang.String password, byte[] challenge, byte[] clientChallenge) throws java.lang.Exception
password
- The user's password.challenge
- The Type 2 challenge from the server.clientChallenge
- The random 8-byte client challenge.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |