Package org.apache.http.impl.auth
Class NTLMEngineImpl.Handle
java.lang.Object
org.apache.http.impl.auth.NTLMEngineImpl.Handle
- Enclosing class:
- NTLMEngineImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private final boolean
(package private) final NTLMEngineImpl.Mode
private final Cipher
private byte[]
(package private) int
private byte[]
-
Constructor Summary
ConstructorsConstructorDescriptionHandle
(byte[] exportedSessionKey, NTLMEngineImpl.Mode mode, boolean isConnection) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private byte[]
computeSignature
(byte[] message) private byte[]
decrypt
(byte[] data) byte[]
decryptAndVerifySignedMessage
(byte[] inMessage) private byte[]
encrypt
(byte[] data) byte[]
byte[]
private Cipher
byte[]
signAndEncryptMessage
(byte[] cleartextMessage) private boolean
validateSignature
(byte[] signature, byte[] message)
-
Field Details
-
exportedSessionKey
private final byte[] exportedSessionKey -
signingKey
private byte[] signingKey -
sealingKey
private byte[] sealingKey -
rc4
-
mode
-
isConnection
private final boolean isConnection -
sequenceNumber
int sequenceNumber
-
-
Constructor Details
-
Handle
Handle(byte[] exportedSessionKey, NTLMEngineImpl.Mode mode, boolean isConnection) throws NTLMEngineException - Throws:
NTLMEngineException
-
-
Method Details
-
getSigningKey
public byte[] getSigningKey() -
getSealingKey
public byte[] getSealingKey() -
initCipher
- Throws:
NTLMEngineException
-
advanceMessageSequence
- Throws:
NTLMEngineException
-
encrypt
private byte[] encrypt(byte[] data) -
decrypt
private byte[] decrypt(byte[] data) -
computeSignature
private byte[] computeSignature(byte[] message) -
validateSignature
private boolean validateSignature(byte[] signature, byte[] message) -
signAndEncryptMessage
- Throws:
NTLMEngineException
-
decryptAndVerifySignedMessage
- Throws:
NTLMEngineException
-