public abstract class NtlmMessage extends java.lang.Object implements NtlmFlags
Modifier and Type | Field and Description |
---|---|
protected static byte[] |
NTLMSSP_SIGNATURE
The NTLMSSP "preamble".
|
NTLMSSP_NEGOTIATE_128, NTLMSSP_NEGOTIATE_56, NTLMSSP_NEGOTIATE_ALWAYS_SIGN, NTLMSSP_NEGOTIATE_DATAGRAM_STYLE, NTLMSSP_NEGOTIATE_KEY_EXCH, NTLMSSP_NEGOTIATE_LM_KEY, NTLMSSP_NEGOTIATE_LOCAL_CALL, NTLMSSP_NEGOTIATE_NETWARE, NTLMSSP_NEGOTIATE_NTLM, NTLMSSP_NEGOTIATE_NTLM2, NTLMSSP_NEGOTIATE_OEM, NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED, NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED, NTLMSSP_NEGOTIATE_SEAL, NTLMSSP_NEGOTIATE_SIGN, NTLMSSP_NEGOTIATE_TARGET_INFO, NTLMSSP_NEGOTIATE_UNICODE, NTLMSSP_REQUEST_ACCEPT_RESPONSE, NTLMSSP_REQUEST_INIT_RESPONSE, NTLMSSP_REQUEST_NON_NT_SESSION_KEY, NTLMSSP_REQUEST_TARGET, NTLMSSP_TARGET_TYPE_DOMAIN, NTLMSSP_TARGET_TYPE_SERVER, NTLMSSP_TARGET_TYPE_SHARE
Constructor and Description |
---|
NtlmMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
getFlag(int flag)
Returns the status of the specified flag.
|
int |
getFlags()
Returns the flags currently in use for this message.
|
void |
setFlag(int flag,
boolean value)
Sets or clears the specified flag.
|
void |
setFlags(int flags)
Sets the flags for this message.
|
abstract byte[] |
toByteArray()
Returns the raw byte representation of this message.
|
protected static final byte[] NTLMSSP_SIGNATURE
public int getFlags()
int
containing the flags in use for this
message.public void setFlags(int flags)
flags
- The flags for this message.public boolean getFlag(int flag)
flag
- The flag to test (i.e., NTLMSSP_NEGOTIATE_OEM
).boolean
indicating whether the flag is set.public void setFlag(int flag, boolean value)
flag
- The flag to set/clear (i.e.,
NTLMSSP_NEGOTIATE_OEM
).value
- Indicates whether to set (true
) or
clear (false
) the specified flag.public abstract byte[] toByteArray()
byte[]
containing the raw message material.