jcifs.ntlmssp

Class NtlmMessage

public abstract class NtlmMessage extends Object implements NtlmFlags

Abstract superclass for all NTLMSSP messages.
Field Summary
protected static byte[]NTLMSSP_SIGNATURE
The NTLMSSP "preamble".
Method Summary
booleangetFlag(int flag)
Returns the status of the specified flag.
intgetFlags()
Returns the flags currently in use for this message.
voidsetFlag(int flag, boolean value)
Sets or clears the specified flag.
voidsetFlags(int flags)
Sets the flags for this message.
abstract byte[]toByteArray()
Returns the raw byte representation of this message.

Field Detail

NTLMSSP_SIGNATURE

protected static final byte[] NTLMSSP_SIGNATURE
The NTLMSSP "preamble".

Method Detail

getFlag

public boolean getFlag(int flag)
Returns the status of the specified flag.

Parameters: flag The flag to test (i.e., NTLMSSP_NEGOTIATE_OEM).

Returns: A boolean indicating whether the flag is set.

getFlags

public int getFlags()
Returns the flags currently in use for this message.

Returns: An int containing the flags in use for this message.

setFlag

public void setFlag(int flag, boolean value)
Sets or clears the specified flag.

Parameters: flag The flag to set/clear (i.e., NTLMSSP_NEGOTIATE_OEM). value Indicates whether to set (true) or clear (false) the specified flag.

setFlags

public void setFlags(int flags)
Sets the flags for this message.

Parameters: flags The flags for this message.

toByteArray

public abstract byte[] toByteArray()
Returns the raw byte representation of this message.

Returns: A byte[] containing the raw message material.