Top Description Methods
org.apache.http.impl.auth

public Interface NTLMEngine

Known Direct Implementers
org.apache.http.impl.auth.NTLMEngineImpl

Abstract NTLM authentication engine. The engine can be used to generate Type1 messages and Type3 messages in response to a Type2 challenge.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Type1 message
generateType1Msg
(String
Optional Windows domain name. Can be null.
domain
,
String
Optional Windows workstation name. Can be null.
workstation
)

Generates a Type1 message given the domain and workstation.

public String

Returns:

Type3 response.
generateType3Msg
(String
Windows user name
username
,
String
Password
password
,
String
Windows domain name
domain
,
String
Windows workstation name
workstation
,
String
Type2 challenge.
challenge
)

Generates a Type3 message given the user credentials and the authentication challenge.

Method Detail

generateType1Msgback to summary
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException

Generates a Type1 message given the domain and workstation.

Parameters
domain:String

Optional Windows domain name. Can be null.

workstation:String

Optional Windows workstation name. Can be null.

Returns:String

Type1 message

generateType3Msgback to summary
public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException

Generates a Type3 message given the user credentials and the authentication challenge.

Parameters
username:String

Windows user name

password:String

Password

domain:String

Windows domain name

workstation:String

Windows workstation name

challenge:String

Type2 challenge.

Returns:String

Type3 response.