Interface NTLMEngine
public interface NTLMEngine
Abstract NTLM authentication engine. The engine can be used to
generate Type1 messages and Type3 messages in response to a Type2 challenge.
Code from io.cloudsoft.winrm4j.client.ntlm.forks.httpclient.NTLMEngine
release 0.12.3 @link https://github.com/cloudsoft/winrm4j
io.cloudsoft.winrm4j.client.ntlm.forks.httpclient is a fork of apache-httpclient 4.5.13
-
Method Summary
Modifier and TypeMethodDescriptiongenerateType1Msg
(String domain, String workstation) Generates a Type1 message given the domain and workstation.generateType3Msg
(String username, String password, String domain, String workstation, String challenge) Generates a Type3 message given the user credentials and the authentication challenge.generateType3MsgObject
(String username, String password, String domain, String workstation, String challenge)
-
Method Details
-
generateType1Msg
String generateType1Msg(String domain, String workstation) throws org.apache.http.impl.auth.NTLMEngineException Generates a Type1 message given the domain and workstation.- Parameters:
domain
- Optional Windows domain name. Can benull
.workstation
- Optional Windows workstation name. Can benull
.- Returns:
- Type1 message
- Throws:
org.apache.http.impl.auth.NTLMEngineException
-
generateType3Msg
String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws org.apache.http.impl.auth.NTLMEngineException Generates a Type3 message given the user credentials and the authentication challenge.- Parameters:
username
- Windows user namepassword
- Passworddomain
- Windows domain nameworkstation
- Windows workstation namechallenge
- Type2 challenge.- Returns:
- Type3 response.
- Throws:
org.apache.http.impl.auth.NTLMEngineException
-
generateType3MsgObject
Type3Message generateType3MsgObject(String username, String password, String domain, String workstation, String challenge) throws org.apache.http.impl.auth.NTLMEngineException - Throws:
org.apache.http.impl.auth.NTLMEngineException
-