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

public Interface NTLMEngine

Known Direct Implementers
org.apache.hc.client5.http.impl.auth.NTLMEngineImpl
Annotations
@Deprecated

Deprecated

Do not use. the NTLM authentication scheme is no longer supported

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
,
char[]
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, char[] 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:char[]

Password

domain:String

Windows domain name

workstation:String

Windows workstation name

challenge:String

Type2 challenge.

Returns:String

Type3 response.