Package org.apache.http.impl.auth
Class NTLMEngineImpl.CipherGen
- java.lang.Object
-
- org.apache.http.impl.auth.NTLMEngineImpl.CipherGen
-
- Enclosing class:
- NTLMEngineImpl
protected static class NTLMEngineImpl.CipherGen extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]challengeprotected byte[]clientChallengeprotected byte[]clientChallenge2protected longcurrentTimeprotected java.lang.Stringdomainprotected byte[]lanManagerSessionKeyprotected byte[]lm2SessionResponseprotected byte[]lmHashprotected byte[]lmResponseprotected byte[]lmUserSessionKeyprotected byte[]lmv2Hashprotected byte[]lmv2Responseprotected byte[]ntlm2SessionResponseprotected byte[]ntlm2SessionResponseUserSessionKeyprotected byte[]ntlmHashprotected byte[]ntlmResponseprotected byte[]ntlmUserSessionKeyprotected byte[]ntlmv2Blobprotected byte[]ntlmv2Hashprotected byte[]ntlmv2Responseprotected byte[]ntlmv2UserSessionKeyprotected java.lang.Stringpasswordprotected java.util.Randomrandomprotected byte[]secondaryKeyprotected java.lang.Stringtargetprotected byte[]targetInformationprotected byte[]timestampprotected java.lang.Stringuser
-
Constructor Summary
Constructors Constructor Description CipherGen(java.lang.String domain, java.lang.String user, java.lang.String password, byte[] challenge, java.lang.String target, byte[] targetInformation)CipherGen(java.lang.String domain, java.lang.String user, java.lang.String password, byte[] challenge, java.lang.String target, byte[] targetInformation, byte[] clientChallenge, byte[] clientChallenge2, byte[] secondaryKey, byte[] timestamp)CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, java.lang.String password, byte[] challenge, java.lang.String target, byte[] targetInformation)CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, java.lang.String 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
protected final java.util.Random random
-
currentTime
protected final long currentTime
-
domain
protected final java.lang.String domain
-
user
protected final java.lang.String user
-
password
protected final java.lang.String password
-
challenge
protected final byte[] challenge
-
target
protected final java.lang.String 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 Detail
-
CipherGen
@Deprecated public CipherGen(java.lang.String domain, java.lang.String user, java.lang.String 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, java.lang.String password, byte[] challenge, java.lang.String target, byte[] targetInformation, byte[] clientChallenge, byte[] clientChallenge2, byte[] secondaryKey, byte[] timestamp)
-
CipherGen
@Deprecated public CipherGen(java.lang.String domain, java.lang.String user, java.lang.String password, byte[] challenge, java.lang.String target, byte[] targetInformation)
-
CipherGen
public CipherGen(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String user, java.lang.String password, byte[] challenge, java.lang.String target, byte[] targetInformation)
-
-
Method Detail
-
getClientChallenge
public byte[] getClientChallenge() throws NTLMEngineExceptionCalculate and return client challenge- Throws:
NTLMEngineException
-
getClientChallenge2
public byte[] getClientChallenge2() throws NTLMEngineExceptionCalculate and return second client challenge- Throws:
NTLMEngineException
-
getSecondaryKey
public byte[] getSecondaryKey() throws NTLMEngineExceptionCalculate and return random secondary key- Throws:
NTLMEngineException
-
getLMHash
public byte[] getLMHash() throws NTLMEngineExceptionCalculate and return the LMHash- Throws:
NTLMEngineException
-
getLMResponse
public byte[] getLMResponse() throws NTLMEngineExceptionCalculate and return the LMResponse- Throws:
NTLMEngineException
-
getNTLMHash
public byte[] getNTLMHash() throws NTLMEngineExceptionCalculate and return the NTLMHash- Throws:
NTLMEngineException
-
getNTLMResponse
public byte[] getNTLMResponse() throws NTLMEngineExceptionCalculate and return the NTLMResponse- Throws:
NTLMEngineException
-
getLMv2Hash
public byte[] getLMv2Hash() throws NTLMEngineExceptionCalculate the LMv2 hash- Throws:
NTLMEngineException
-
getNTLMv2Hash
public byte[] getNTLMv2Hash() throws NTLMEngineExceptionCalculate the NTLMv2 hash- Throws:
NTLMEngineException
-
getTimestamp
public byte[] getTimestamp()
Calculate a timestamp
-
getNTLMv2Blob
public byte[] getNTLMv2Blob() throws NTLMEngineExceptionCalculate the NTLMv2Blob- Throws:
NTLMEngineException
-
getNTLMv2Response
public byte[] getNTLMv2Response() throws NTLMEngineExceptionCalculate the NTLMv2Response- Throws:
NTLMEngineException
-
getLMv2Response
public byte[] getLMv2Response() throws NTLMEngineExceptionCalculate the LMv2Response- Throws:
NTLMEngineException
-
getNTLM2SessionResponse
public byte[] getNTLM2SessionResponse() throws NTLMEngineExceptionGet NTLM2SessionResponse- Throws:
NTLMEngineException
-
getLM2SessionResponse
public byte[] getLM2SessionResponse() throws NTLMEngineExceptionCalculate and return LM2 session response- Throws:
NTLMEngineException
-
getLMUserSessionKey
public byte[] getLMUserSessionKey() throws NTLMEngineExceptionGet LMUserSessionKey- Throws:
NTLMEngineException
-
getNTLMUserSessionKey
public byte[] getNTLMUserSessionKey() throws NTLMEngineExceptionGet NTLMUserSessionKey- Throws:
NTLMEngineException
-
getNTLMv2UserSessionKey
public byte[] getNTLMv2UserSessionKey() throws NTLMEngineExceptionGetNTLMv2UserSessionKey- Throws:
NTLMEngineException
-
getNTLM2SessionResponseUserSessionKey
public byte[] getNTLM2SessionResponseUserSessionKey() throws NTLMEngineExceptionGet NTLM2SessionResponseUserSessionKey- Throws:
NTLMEngineException
-
getLanManagerSessionKey
public byte[] getLanManagerSessionKey() throws NTLMEngineExceptionGet LAN Manager session key- Throws:
NTLMEngineException
-
-