jcifs.ntlmssp
Class NtlmMessage
java.lang.Object
jcifs.ntlmssp.NtlmMessage
- NtlmFlags
public abstract class NtlmMessage
extends java.lang.Object
Abstract superclass for all NTLMSSP messages.
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 |
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.
|
NTLMSSP_SIGNATURE
protected static final byte[] NTLMSSP_SIGNATURE
The NTLMSSP "preamble".
getFlag
public boolean getFlag(int flag)
Returns the status of the specified flag.
flag
- The flag to test (i.e., NTLMSSP_NEGOTIATE_OEM
).
- A
boolean
indicating whether the flag is set.
getFlags
public int getFlags()
Returns the flags currently in use for this message.
- An
int
containing the flags in use for this
message.
setFlag
public void setFlag(int flag,
boolean value)
Sets or clears the specified flag.
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.
flags
- The flags for this message.
toByteArray
public abstract byte[] toByteArray()
Returns the raw byte representation of this message.
- A
byte[]
containing the raw message material.