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