Class NTLMEngineImpl.CipherGen
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.NTLMEngineImpl.CipherGen
-
- Enclosing class:
- NTLMEngineImpl
static class NTLMEngineImpl.CipherGen extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]
challenge
(package private) byte[]
clientChallenge
(package private) byte[]
clientChallenge2
(package private) long
currentTime
(package private) java.lang.String
domain
(package private) byte[]
lanManagerSessionKey
(package private) byte[]
lm2SessionResponse
(package private) byte[]
lmHash
(package private) byte[]
lmResponse
(package private) byte[]
lmUserSessionKey
(package private) byte[]
lmv2Hash
(package private) byte[]
lmv2Response
(package private) byte[]
ntlm2SessionResponse
(package private) byte[]
ntlm2SessionResponseUserSessionKey
(package private) byte[]
ntlmHash
(package private) byte[]
ntlmResponse
(package private) byte[]
ntlmUserSessionKey
(package private) byte[]
ntlmv2Blob
(package private) byte[]
ntlmv2Hash
(package private) byte[]
ntlmv2Response
(package private) byte[]
ntlmv2UserSessionKey
(package private) char[]
password
(package private) java.util.Random
random
(package private) byte[]
secondaryKey
(package private) java.lang.String
target
(package private) byte[]
targetInformation
(package private) byte[]
timestamp
(package private) java.lang.String
user
-
Constructor Summary
Constructors Constructor Description CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, char[] password, byte[] challenge, java.lang.String target, byte[] targetInformation)
CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, char[] password, byte[] challenge, java.lang.String target, byte[] targetInformation, byte[] clientChallenge, byte[] clientChallenge2, byte[] secondaryKey, byte[] timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getClientChallenge()
Calculate and return client challengebyte[]
getClientChallenge2()
Calculate and return second client challengebyte[]
getLanManagerSessionKey()
Get LAN Manager session keybyte[]
getLM2SessionResponse()
Calculate and return LM2 session responsebyte[]
getLMHash()
Calculate and return the LMHashbyte[]
getLMResponse()
Calculate and return the LMResponsebyte[]
getLMUserSessionKey()
Get LMUserSessionKeybyte[]
getLMv2Hash()
Calculate the LMv2 hashbyte[]
getLMv2Response()
Calculate the LMv2Responsebyte[]
getNTLM2SessionResponse()
Get NTLM2SessionResponsebyte[]
getNTLM2SessionResponseUserSessionKey()
Get NTLM2SessionResponseUserSessionKeybyte[]
getNTLMHash()
Calculate and return the NTLMHashbyte[]
getNTLMResponse()
Calculate and return the NTLMResponsebyte[]
getNTLMUserSessionKey()
Get NTLMUserSessionKeybyte[]
getNTLMv2Blob()
Calculate the NTLMv2Blobbyte[]
getNTLMv2Hash()
Calculate the NTLMv2 hashbyte[]
getNTLMv2Response()
Calculate the NTLMv2Responsebyte[]
getNTLMv2UserSessionKey()
GetNTLMv2UserSessionKeybyte[]
getSecondaryKey()
Calculate and return random secondary keybyte[]
getTimestamp()
Calculate a timestamp
-
-
-
Field Detail
-
random
final java.util.Random random
-
currentTime
final long currentTime
-
domain
final java.lang.String domain
-
user
final java.lang.String user
-
password
final char[] password
-
challenge
final byte[] challenge
-
target
final java.lang.String target
-
targetInformation
final byte[] targetInformation
-
clientChallenge
byte[] clientChallenge
-
clientChallenge2
byte[] clientChallenge2
-
secondaryKey
byte[] secondaryKey
-
timestamp
byte[] timestamp
-
lmHash
byte[] lmHash
-
lmResponse
byte[] lmResponse
-
ntlmHash
byte[] ntlmHash
-
ntlmResponse
byte[] ntlmResponse
-
ntlmv2Hash
byte[] ntlmv2Hash
-
lmv2Hash
byte[] lmv2Hash
-
lmv2Response
byte[] lmv2Response
-
ntlmv2Blob
byte[] ntlmv2Blob
-
ntlmv2Response
byte[] ntlmv2Response
-
ntlm2SessionResponse
byte[] ntlm2SessionResponse
-
lm2SessionResponse
byte[] lm2SessionResponse
-
lmUserSessionKey
byte[] lmUserSessionKey
-
ntlmUserSessionKey
byte[] ntlmUserSessionKey
-
ntlmv2UserSessionKey
byte[] ntlmv2UserSessionKey
-
ntlm2SessionResponseUserSessionKey
byte[] ntlm2SessionResponseUserSessionKey
-
lanManagerSessionKey
byte[] lanManagerSessionKey
-
-
Constructor Detail
-
CipherGen
public CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, char[] password, byte[] challenge, java.lang.String target, byte[] targetInformation, byte[] clientChallenge, byte[] clientChallenge2, byte[] secondaryKey, byte[] timestamp)
-
CipherGen
public CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, char[] password, byte[] challenge, java.lang.String target, byte[] targetInformation)
-
-
Method Detail
-
getClientChallenge
public byte[] getClientChallenge()
Calculate and return client challenge
-
getClientChallenge2
public byte[] getClientChallenge2()
Calculate and return second client challenge
-
getSecondaryKey
public byte[] getSecondaryKey()
Calculate and return random secondary key
-
getLMHash
public byte[] getLMHash() throws NTLMEngineException
Calculate and return the LMHash- Throws:
NTLMEngineException
-
getLMResponse
public byte[] getLMResponse() throws NTLMEngineException
Calculate and return the LMResponse- Throws:
NTLMEngineException
-
getNTLMHash
public byte[] getNTLMHash() throws NTLMEngineException
Calculate and return the NTLMHash- Throws:
NTLMEngineException
-
getNTLMResponse
public byte[] getNTLMResponse() throws NTLMEngineException
Calculate and return the NTLMResponse- Throws:
NTLMEngineException
-
getLMv2Hash
public byte[] getLMv2Hash() throws NTLMEngineException
Calculate the LMv2 hash- Throws:
NTLMEngineException
-
getNTLMv2Hash
public byte[] getNTLMv2Hash() throws NTLMEngineException
Calculate the NTLMv2 hash- Throws:
NTLMEngineException
-
getTimestamp
public byte[] getTimestamp()
Calculate a timestamp
-
getNTLMv2Blob
public byte[] getNTLMv2Blob()
Calculate the NTLMv2Blob
-
getNTLMv2Response
public byte[] getNTLMv2Response() throws NTLMEngineException
Calculate the NTLMv2Response- Throws:
NTLMEngineException
-
getLMv2Response
public byte[] getLMv2Response() throws NTLMEngineException
Calculate the LMv2Response- Throws:
NTLMEngineException
-
getNTLM2SessionResponse
public byte[] getNTLM2SessionResponse() throws NTLMEngineException
Get NTLM2SessionResponse- Throws:
NTLMEngineException
-
getLM2SessionResponse
public byte[] getLM2SessionResponse()
Calculate and return LM2 session response
-
getLMUserSessionKey
public byte[] getLMUserSessionKey() throws NTLMEngineException
Get LMUserSessionKey- Throws:
NTLMEngineException
-
getNTLMUserSessionKey
public byte[] getNTLMUserSessionKey() throws NTLMEngineException
Get NTLMUserSessionKey- Throws:
NTLMEngineException
-
getNTLMv2UserSessionKey
public byte[] getNTLMv2UserSessionKey() throws NTLMEngineException
GetNTLMv2UserSessionKey- Throws:
NTLMEngineException
-
getNTLM2SessionResponseUserSessionKey
public byte[] getNTLM2SessionResponseUserSessionKey() throws NTLMEngineException
Get NTLM2SessionResponseUserSessionKey- Throws:
NTLMEngineException
-
getLanManagerSessionKey
public byte[] getLanManagerSessionKey() throws NTLMEngineException
Get LAN Manager session key- Throws:
NTLMEngineException
-
-