Package | Description |
---|---|
org.apache.http.impl.auth |
Default implementations of standard and common HTTP authentication
schemes.
|
Modifier and Type | Method and Description |
---|---|
private byte[] |
NTLMEngineImpl.Type3Message.addGssMicAvsToTargetInfo(byte[] originalTargetInfo,
java.security.cert.Certificate peerServerCertificate)
Add GSS channel binding hash and MIC flag to the targetInfo.
|
private void |
NTLMEngineImpl.Handle.advanceMessageSequence() |
byte[] |
NTLMEngineImpl.Handle.decryptAndVerifySignedMessage(byte[] inMessage) |
java.lang.String |
NTLMEngine.generateType1Msg(java.lang.String domain,
java.lang.String workstation)
Generates a Type1 message given the domain and workstation.
|
java.lang.String |
NTLMEngineImpl.generateType1Msg(java.lang.String domain,
java.lang.String workstation) |
java.lang.String |
NTLMEngine.generateType3Msg(java.lang.String username,
java.lang.String password,
java.lang.String domain,
java.lang.String workstation,
java.lang.String challenge)
Generates a Type3 message given the user credentials and the
authentication challenge.
|
java.lang.String |
NTLMEngineImpl.generateType3Msg(java.lang.String username,
java.lang.String password,
java.lang.String domain,
java.lang.String workstation,
java.lang.String challenge) |
private static java.nio.charset.Charset |
NTLMEngineImpl.getCharset(int flags)
Find the character set based on the flags.
|
byte[] |
NTLMEngineImpl.CipherGen.getClientChallenge()
Calculate and return client challenge
|
byte[] |
NTLMEngineImpl.CipherGen.getClientChallenge2()
Calculate and return second client challenge
|
byte[] |
NTLMEngineImpl.CipherGen.getLanManagerSessionKey()
Get LAN Manager session key
|
byte[] |
NTLMEngineImpl.CipherGen.getLM2SessionResponse()
Calculate and return LM2 session response
|
byte[] |
NTLMEngineImpl.CipherGen.getLMHash()
Calculate and return the LMHash
|
byte[] |
NTLMEngineImpl.CipherGen.getLMResponse()
Calculate and return the LMResponse
|
byte[] |
NTLMEngineImpl.CipherGen.getLMUserSessionKey()
Get LMUserSessionKey
|
byte[] |
NTLMEngineImpl.CipherGen.getLMv2Hash()
Calculate the LMv2 hash
|
byte[] |
NTLMEngineImpl.CipherGen.getLMv2Response()
Calculate the LMv2Response
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLM2SessionResponse()
Get NTLM2SessionResponse
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLM2SessionResponseUserSessionKey()
Get NTLM2SessionResponseUserSessionKey
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMHash()
Calculate and return the NTLMHash
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMResponse()
Calculate and return the NTLMResponse
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMUserSessionKey()
Get NTLMUserSessionKey
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMv2Blob()
Calculate the NTLMv2Blob
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMv2Hash()
Calculate the NTLMv2 hash
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMv2Response()
Calculate the NTLMv2Response
|
byte[] |
NTLMEngineImpl.CipherGen.getNTLMv2UserSessionKey()
GetNTLMv2UserSessionKey
|
byte[] |
NTLMEngineImpl.CipherGen.getSecondaryKey()
Calculate and return random secondary key
|
(package private) static java.lang.String |
NTLMEngineImpl.getType3Message(java.lang.String user,
java.lang.String password,
java.lang.String host,
java.lang.String domain,
byte[] nonce,
int type2Flags,
java.lang.String target,
byte[] targetInformation)
Creates the type 3 message using the given server nonce.
|
(package private) static java.lang.String |
NTLMEngineImpl.getType3Message(java.lang.String user,
java.lang.String password,
java.lang.String host,
java.lang.String domain,
byte[] nonce,
int type2Flags,
java.lang.String target,
byte[] targetInformation,
java.security.cert.Certificate peerServerCertificate,
byte[] type1Message,
byte[] type2Message)
Creates the type 3 message using the given server nonce.
|
(package private) static byte[] |
NTLMEngineImpl.hmacMD5(byte[] value,
byte[] key)
Calculates HMAC-MD5
|
private javax.crypto.Cipher |
NTLMEngineImpl.Handle.initCipher() |
private static byte[] |
NTLMEngineImpl.lmHash(java.lang.String password)
Creates the LM Hash of the user's password.
|
private static byte[] |
NTLMEngineImpl.lmResponse(byte[] hash,
byte[] challenge)
Creates the LM Response from the given hash and Type 2 challenge.
|
private static byte[] |
NTLMEngineImpl.lmv2Hash(java.lang.String domain,
java.lang.String user,
byte[] ntlmHash)
Creates the LMv2 Hash of the user's password.
|
(package private) static byte[] |
NTLMEngineImpl.ntlm2SessionResponse(byte[] ntlmHash,
byte[] challenge,
byte[] clientChallenge)
Calculates the NTLM2 Session Response for the given challenge, using the
specified password and client challenge.
|
private static byte[] |
NTLMEngineImpl.ntlmHash(java.lang.String password)
Creates the NTLM Hash of the user's password.
|
private static byte[] |
NTLMEngineImpl.ntlmv2Hash(java.lang.String domain,
java.lang.String user,
byte[] ntlmHash)
Creates the NTLMv2 Hash of the user's password.
|
(package private) static byte[] |
NTLMEngineImpl.RC4(byte[] value,
byte[] key)
Calculates RC4
|
protected byte |
NTLMEngineImpl.NTLMMessage.readByte(int position)
Read a byte from a position within the message buffer
|
protected void |
NTLMEngineImpl.NTLMMessage.readBytes(byte[] buffer,
int position)
Read a bunch of bytes from a position in the message buffer
|
protected byte[] |
NTLMEngineImpl.NTLMMessage.readSecurityBuffer(int position)
Read a security buffer from a position within the message buffer
|
protected int |
NTLMEngineImpl.NTLMMessage.readULong(int position)
Read a ulong from a position within the message buffer
|
protected int |
NTLMEngineImpl.NTLMMessage.readUShort(int position)
Read a ushort from a position within the message buffer
|
byte[] |
NTLMEngineImpl.Handle.signAndEncryptMessage(byte[] cleartextMessage) |
Constructor and Description |
---|
Handle(byte[] exportedSessionKey,
NTLMEngineImpl.Mode mode,
boolean isConnection) |
NTLMMessage(byte[] message,
int expectedType)
Constructor to use when message bytes are known
|
NTLMMessage(java.lang.String messageBody,
int expectedType)
Constructor taking a string
|
Type1Message(java.lang.String domain,
java.lang.String host) |
Type1Message(java.lang.String domain,
java.lang.String host,
java.lang.Integer flags) |
Type2Message(byte[] message) |
Type2Message(java.lang.String messageBody) |
Type3Message(java.util.Random random,
long currentTime,
java.lang.String domain,
java.lang.String host,
java.lang.String user,
java.lang.String password,
byte[] nonce,
int type2Flags,
java.lang.String target,
byte[] targetInformation)
More primitive constructor: don't include cert or previous messages.
|
Type3Message(java.util.Random random,
long currentTime,
java.lang.String domain,
java.lang.String host,
java.lang.String user,
java.lang.String password,
byte[] nonce,
int type2Flags,
java.lang.String target,
byte[] targetInformation,
java.security.cert.Certificate peerServerCertificate,
byte[] type1Message,
byte[] type2Message)
Constructor.
|
Type3Message(java.lang.String domain,
java.lang.String host,
java.lang.String user,
java.lang.String password,
byte[] nonce,
int type2Flags,
java.lang.String target,
byte[] targetInformation)
More primitive constructor: don't include cert or previous messages.
|
Type3Message(java.lang.String domain,
java.lang.String host,
java.lang.String user,
java.lang.String password,
byte[] nonce,
int type2Flags,
java.lang.String target,
byte[] targetInformation,
java.security.cert.Certificate peerServerCertificate,
byte[] type1Message,
byte[] type2Message)
Constructor.
|