java.lang.Object
org.codelibs.jcifs.smb1.ntlmssp.NtlmMessage
- All Implemented Interfaces:
NtlmFlags
- Direct Known Subclasses:
Type1Message,Type2Message,Type3Message
Abstract superclass for all NTLMSSP messages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]The NTLMSSP "preamble".protected static final StringUnicode encoding used for NTLM messages.Fields inherited from interface org.codelibs.jcifs.smb1.ntlmssp.NtlmFlags
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFlag(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[]Returns the raw byte representation of this message.
-
Field Details
-
NTLMSSP_SIGNATURE
protected static final byte[] NTLMSSP_SIGNATUREThe NTLMSSP "preamble". -
UNI_ENCODING
Unicode encoding used for NTLM messages.- See Also:
-
-
Constructor Details
-
NtlmMessage
protected NtlmMessage()Default constructor.
-
-
Method Details
-
getFlags
public int getFlags()Returns the flags currently in use for this message.- Returns:
- An
intcontaining the flags in use for this message.
-
setFlags
public void setFlags(int flags) Sets the flags for this message.- Parameters:
flags- The flags for this message.
-
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
booleanindicating whether the flag is set.
-
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.
-
toByteArray
public abstract byte[] toByteArray()Returns the raw byte representation of this message.- Returns:
- A
byte[]containing the raw message material.
-