java.lang.Object
org.codelibs.jcifs.smb1.ntlmssp.NtlmMessage
org.codelibs.jcifs.smb1.ntlmssp.Type1Message
- All Implemented Interfaces:
NtlmFlags
Represents an NTLMSSP Type-1 message.
-
Field Summary
Fields inherited from class org.codelibs.jcifs.smb1.ntlmssp.NtlmMessage
NTLMSSP_SIGNATURE, UNI_ENCODINGFields 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
ConstructorsConstructorDescriptionCreates a Type-1 message using default values from the current environment.Type1Message(byte[] material) Creates a Type-1 message using the given raw Type-1 material.Type1Message(int flags, String suppliedDomain, String suppliedWorkstation) Creates a Type-1 message with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the default domain from the current environment.static intReturns the default flags for a generic Type-1 message in the current environment.static StringReturns the default workstation from the current environment.Returns the supplied authentication domain.Returns the supplied workstation name.voidsetSuppliedDomain(String suppliedDomain) Sets the supplied authentication domain for this message.voidsetSuppliedWorkstation(String suppliedWorkstation) Sets the supplied workstation name for this message.byte[]Returns the raw byte representation of this message.toString()Methods inherited from class org.codelibs.jcifs.smb1.ntlmssp.NtlmMessage
getFlag, getFlags, setFlag, setFlags
-
Constructor Details
-
Type1Message
public Type1Message()Creates a Type-1 message using default values from the current environment. -
Type1Message
Creates a Type-1 message with the specified parameters.- Parameters:
flags- The flags to apply to this message.suppliedDomain- The supplied authentication domain.suppliedWorkstation- The supplied workstation name.
-
Type1Message
Creates a Type-1 message using the given raw Type-1 material.- Parameters:
material- The raw Type-1 material used to construct this message.- Throws:
IOException- If an error occurs while parsing the material.
-
-
Method Details
-
getSuppliedDomain
Returns the supplied authentication domain.- Returns:
- A
Stringcontaining the supplied domain.
-
setSuppliedDomain
Sets the supplied authentication domain for this message.- Parameters:
suppliedDomain- The supplied domain for this message.
-
getSuppliedWorkstation
Returns the supplied workstation name.- Returns:
- A
Stringcontaining the supplied workstation name.
-
setSuppliedWorkstation
Sets the supplied workstation name for this message.- Parameters:
suppliedWorkstation- The supplied workstation for this message.
-
toByteArray
public byte[] toByteArray()Description copied from class:NtlmMessageReturns the raw byte representation of this message.- Specified by:
toByteArrayin classNtlmMessage- Returns:
- A
byte[]containing the raw message material.
-
toString
-
getDefaultFlags
public static int getDefaultFlags()Returns the default flags for a generic Type-1 message in the current environment.- Returns:
- An
intcontaining the default flags.
-
getDefaultDomain
Returns the default domain from the current environment.- Returns:
- A
Stringcontaining the default domain.
-
getDefaultWorkstation
Returns the default workstation from the current environment.- Returns:
- A
Stringcontaining the default workstation.
-