static class NTLMEngineImpl.NTLMMessage
extends java.lang.Object
Constructor and Description |
---|
NTLMEngineImpl.NTLMMessage()
Constructor to use when message contents are not yet known
|
NTLMEngineImpl.NTLMMessage(java.lang.String messageBody,
int expectedType)
Constructor to use when message contents are known
|
Modifier and Type | Method and Description |
---|---|
protected void |
addByte(byte b)
Adds the given byte to the response.
|
protected void |
addBytes(byte[] bytes)
Adds the given bytes to the response.
|
protected void |
addULong(int value)
Adds a ULong to the response
|
protected void |
addUShort(int value)
Adds a USHORT to the response
|
protected int |
getMessageLength()
Get the message length
|
protected int |
getPreambleLength()
Get the length of the signature and flags, so calculations can adjust
offsets accordingly.
|
(package private) java.lang.String |
getResponse()
Returns the response that has been generated after shrinking the
array if required and base64 encodes the response.
|
protected void |
prepareResponse(int maxlength,
int messageType)
Prepares the object to create a response of the given length.
|
protected byte |
readByte(int position)
Read a byte from a position within the message buffer
|
protected void |
readBytes(byte[] buffer,
int position)
Read a bunch of bytes from a position in the message buffer
|
protected byte[] |
readSecurityBuffer(int position)
Read a security buffer from a position within the message buffer
|
protected int |
readULong(int position)
Read a ulong from a position within the message buffer
|
protected int |
readUShort(int position)
Read a ushort from a position within the message buffer
|
NTLMEngineImpl.NTLMMessage()
NTLMEngineImpl.NTLMMessage(java.lang.String messageBody, int expectedType) throws NTLMEngineException
NTLMEngineException
protected int getPreambleLength()
protected int getMessageLength()
protected byte readByte(int position) throws NTLMEngineException
NTLMEngineException
protected void readBytes(byte[] buffer, int position) throws NTLMEngineException
NTLMEngineException
protected int readUShort(int position) throws NTLMEngineException
NTLMEngineException
protected int readULong(int position) throws NTLMEngineException
NTLMEngineException
protected byte[] readSecurityBuffer(int position) throws NTLMEngineException
NTLMEngineException
protected void prepareResponse(int maxlength, int messageType)
maxlength
- the maximum length of the response to prepare, not
including the type and the signature (which this method
adds).protected void addByte(byte b)
b
- the byte to add.protected void addBytes(byte[] bytes)
bytes
- the bytes to add.protected void addUShort(int value)
protected void addULong(int value)
java.lang.String getResponse()