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.Modeprivate final Cipherprivate byte[](package private) intprivate byte[] -
Constructor Summary
ConstructorsConstructorDescriptionHandle(byte[] exportedSessionKey, NTLMEngineImpl.Mode mode, boolean isConnection) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate byte[]computeSignature(byte[] message) private byte[]decrypt(byte[] data) byte[]decryptAndVerifySignedMessage(byte[] inMessage) private byte[]encrypt(byte[] data) byte[]byte[]private Cipherbyte[]signAndEncryptMessage(byte[] cleartextMessage) private booleanvalidateSignature(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
-