static class NTLMEngineImpl.Handle
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
Handle(byte[] exportedSessionKey,
NTLMEngineImpl.Mode mode,
boolean isConnection) |
Modifier and Type | Method and 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) |
private final byte[] exportedSessionKey
private byte[] signingKey
private byte[] sealingKey
private final javax.crypto.Cipher rc4
final NTLMEngineImpl.Mode mode
private final boolean isConnection
int sequenceNumber
Handle(byte[] exportedSessionKey, NTLMEngineImpl.Mode mode, boolean isConnection) throws NTLMEngineException
NTLMEngineException
public byte[] getSigningKey()
public byte[] getSealingKey()
private javax.crypto.Cipher initCipher() throws NTLMEngineException
NTLMEngineException
private void advanceMessageSequence() throws NTLMEngineException
NTLMEngineException
private byte[] encrypt(byte[] data)
private byte[] decrypt(byte[] data)
private byte[] computeSignature(byte[] message)
private boolean validateSignature(byte[] signature, byte[] message)
public byte[] signAndEncryptMessage(byte[] cleartextMessage) throws NTLMEngineException
NTLMEngineException
public byte[] decryptAndVerifySignedMessage(byte[] inMessage) throws NTLMEngineException
NTLMEngineException