public class Type1Message extends NtlmMessage
NTLMSSP_NEGOTIATE_128, NTLMSSP_NEGOTIATE_56, NTLMSSP_NEGOTIATE_ALWAYS_SIGN, NTLMSSP_NEGOTIATE_ANONYMOUS, NTLMSSP_NEGOTIATE_DATAGRAM_STYLE, NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY, NTLMSSP_NEGOTIATE_KEY_EXCH, NTLMSSP_NEGOTIATE_LM_KEY, NTLMSSP_NEGOTIATE_LOCAL_CALL, NTLMSSP_NEGOTIATE_NETWARE, NTLMSSP_NEGOTIATE_NTLM, 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_NEGOTIATE_VERSION, 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 |
|---|
Type1Message(byte[] material)
Creates a Type-1 message using the given raw Type-1 material.
|
Type1Message(CIFSContext tc)
Creates a Type-1 message using default values from the current
environment.
|
Type1Message(CIFSContext tc,
int flags,
String suppliedDomain,
String suppliedWorkstation)
Creates a Type-1 message with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getDefaultFlags(CIFSContext tc)
Returns the default flags for a generic Type-1 message in the
current environment.
|
String |
getSuppliedDomain()
Returns the supplied authentication domain.
|
String |
getSuppliedWorkstation()
Returns the supplied workstation name.
|
void |
setSuppliedDomain(String suppliedDomain)
Sets the supplied authentication domain for this message.
|
void |
setSuppliedWorkstation(String suppliedWorkstation)
Sets the supplied workstation name for this message.
|
byte[] |
toByteArray()
Returns the raw byte representation of this message.
|
String |
toString() |
getFlag, getFlags, setFlag, setFlagspublic Type1Message(CIFSContext tc)
tc - context to usepublic Type1Message(CIFSContext tc, int flags, String suppliedDomain, String suppliedWorkstation)
tc - context to useflags - The flags to apply to this message.suppliedDomain - The supplied authentication domain.suppliedWorkstation - The supplied workstation name.public Type1Message(byte[] material)
throws IOException
material - The raw Type-1 material used to construct this message.IOException - If an error occurs while parsing the material.public static int getDefaultFlags(CIFSContext tc)
tc - context to useint containing the default flags.public String getSuppliedDomain()
String containing the supplied domain.public void setSuppliedDomain(String suppliedDomain)
suppliedDomain - The supplied domain for this message.public String getSuppliedWorkstation()
String containing the supplied workstation name.public void setSuppliedWorkstation(String suppliedWorkstation)
suppliedWorkstation - The supplied workstation for this message.public byte[] toByteArray()
NtlmMessagetoByteArray in class NtlmMessagebyte[] containing the raw message material.Copyright © 2023. All rights reserved.