Package org.apache.http.impl.auth
Class NTLMEngineImpl.Handle
- java.lang.Object
-
- org.apache.http.impl.auth.NTLMEngineImpl.Handle
-
- Enclosing class:
- NTLMEngineImpl
static class NTLMEngineImpl.Handle extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
exportedSessionKey
private boolean
isConnection
(package private) NTLMEngineImpl.Mode
mode
private javax.crypto.Cipher
rc4
private byte[]
sealingKey
(package private) int
sequenceNumber
private byte[]
signingKey
-
Constructor Summary
Constructors Constructor Description Handle(byte[] exportedSessionKey, NTLMEngineImpl.Mode mode, boolean isConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
advanceMessageSequence()
private byte[]
computeSignature(byte[] message)
private byte[]
decrypt(byte[] data)
byte[]
decryptAndVerifySignedMessage(byte[] inMessage)
private byte[]
encrypt(byte[] data)
byte[]
getSealingKey()
byte[]
getSigningKey()
private javax.crypto.Cipher
initCipher()
byte[]
signAndEncryptMessage(byte[] cleartextMessage)
private boolean
validateSignature(byte[] signature, byte[] message)
-
-
-
Field Detail
-
exportedSessionKey
private final byte[] exportedSessionKey
-
signingKey
private byte[] signingKey
-
sealingKey
private byte[] sealingKey
-
rc4
private final javax.crypto.Cipher rc4
-
mode
final NTLMEngineImpl.Mode mode
-
isConnection
private final boolean isConnection
-
sequenceNumber
int sequenceNumber
-
-
Constructor Detail
-
Handle
Handle(byte[] exportedSessionKey, NTLMEngineImpl.Mode mode, boolean isConnection) throws NTLMEngineException
- Throws:
NTLMEngineException
-
-
Method Detail
-
getSigningKey
public byte[] getSigningKey()
-
getSealingKey
public byte[] getSealingKey()
-
initCipher
private javax.crypto.Cipher initCipher() throws NTLMEngineException
- Throws:
NTLMEngineException
-
advanceMessageSequence
private void advanceMessageSequence() throws NTLMEngineException
- 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
public byte[] signAndEncryptMessage(byte[] cleartextMessage) throws NTLMEngineException
- Throws:
NTLMEngineException
-
decryptAndVerifySignedMessage
public byte[] decryptAndVerifySignedMessage(byte[] inMessage) throws NTLMEngineException
- Throws:
NTLMEngineException
-
-