jcifs.ntlmssp

Class Type1Message

public class Type1Message extends NtlmMessage

Represents an NTLMSSP Type-1 message.
Constructor Summary
Type1Message()
Creates a Type-1 message using default values from the current environment.
Type1Message(int flags, String suppliedDomain, String suppliedWorkstation)
Creates a Type-1 message with the specified parameters.
Type1Message(byte[] material)
Creates a Type-1 message using the given raw Type-1 material.
Method Summary
static StringgetDefaultDomain()
Returns the default domain from the current environment.
static intgetDefaultFlags()
Returns the default flags for a generic Type-1 message in the current environment.
static StringgetDefaultWorkstation()
Returns the default workstation from the current environment.
StringgetSuppliedDomain()
Returns the supplied authentication domain.
StringgetSuppliedWorkstation()
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[]toByteArray()
StringtoString()

Constructor Detail

Type1Message

public Type1Message()
Creates a Type-1 message using default values from the current environment.

Type1Message

public Type1Message(int flags, String suppliedDomain, String suppliedWorkstation)
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

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

getDefaultDomain

public static String getDefaultDomain()
Returns the default domain from the current environment.

Returns: A String containing the default domain.

getDefaultFlags

public static int getDefaultFlags()
Returns the default flags for a generic Type-1 message in the current environment.

Returns: An int containing the default flags.

getDefaultWorkstation

public static String getDefaultWorkstation()
Returns the default workstation from the current environment.

Returns: A String containing the default workstation.

getSuppliedDomain

public String getSuppliedDomain()
Returns the supplied authentication domain.

Returns: A String containing the supplied domain.

getSuppliedWorkstation

public String getSuppliedWorkstation()
Returns the supplied workstation name.

Returns: A String containing the supplied workstation name.

setSuppliedDomain

public void setSuppliedDomain(String suppliedDomain)
Sets the supplied authentication domain for this message.

Parameters: suppliedDomain The supplied domain for this message.

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()

toString

public String toString()