Module jcifs

Class Type1Message

java.lang.Object
org.codelibs.jcifs.smb.ntlmssp.NtlmMessage
org.codelibs.jcifs.smb.ntlmssp.Type1Message
All Implemented Interfaces:
NtlmFlags

public class Type1Message extends NtlmMessage
Represents an NTLMSSP Type-1 message.
  • Constructor Details

    • Type1Message

      public Type1Message(CIFSContext tc)
      Creates a Type-1 message using default values from the current environment.
      Parameters:
      tc - context to use
    • Type1Message

      public Type1Message(CIFSContext tc, int flags, String suppliedDomain, String suppliedWorkstation)
      Creates a Type-1 message with the specified parameters.
      Parameters:
      tc - context to use
      flags - The flags to apply to this message.
      suppliedDomain - The supplied authentication domain.
      suppliedWorkstation - The supplied workstation name.
    • Type1Message

      public Type1Message(byte[] material) throws IOException
      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

    • getDefaultFlags

      public static int getDefaultFlags(CIFSContext tc)
      Returns the default flags for a generic Type-1 message in the current environment.
      Parameters:
      tc - context to use
      Returns:
      An int containing the default flags.
    • getSuppliedDomain

      public String getSuppliedDomain()
      Returns the supplied authentication domain.
      Returns:
      A String containing the supplied domain.
    • setSuppliedDomain

      public void setSuppliedDomain(String suppliedDomain)
      Sets the supplied authentication domain for this message.
      Parameters:
      suppliedDomain - The supplied domain for this message.
    • getSuppliedWorkstation

      public String getSuppliedWorkstation()
      Returns the supplied workstation name.
      Returns:
      A String containing the supplied workstation name.
    • setSuppliedWorkstation

      public void setSuppliedWorkstation(String suppliedWorkstation)
      Sets the supplied workstation name for this message.
      Parameters:
      suppliedWorkstation - The supplied workstation for this message.
    • toByteArray

      public byte[] toByteArray()
      Description copied from class: NtlmMessage
      Returns the raw byte representation of this message.
      Specified by:
      toByteArray in class NtlmMessage
      Returns:
      A byte[] containing the raw message material.
    • toString

      public String toString()
      Overrides:
      toString in class Object