C# Class SharpCifs.Ntlmssp.Type2Message

Represents an NTLMSSP Type-2 message.
Represents an NTLMSSP Type-2 message.
Inheritance: NtlmMessage
ファイルを表示 Open project: brandonprry/Potato Class Usage Examples

Public Methods

Method Description
GetChallenge ( ) : byte[]

Returns the challenge for this message.

Returns the challenge for this message.

GetContext ( ) : byte[]

Returns the local security context.

Returns the local security context.

GetDefaultDomain ( ) : string

Returns the default domain from the current environment.

Returns the default domain from the current environment.

GetDefaultFlags ( ) : int

Returns the default flags for a generic Type-2 message in the current environment.

Returns the default flags for a generic Type-2 message in the current environment.

GetDefaultFlags ( Type1Message type1 ) : int

Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment.

Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment.

GetDefaultTargetInformation ( ) : byte[]
GetTarget ( ) : string

Returns the authentication target.

Returns the authentication target.

GetTargetInformation ( ) : byte[]

Returns the target information block.

Returns the target information block.

SetChallenge ( byte challenge ) : void

Sets the challenge for this message.

Sets the challenge for this message.

SetContext ( byte context ) : void

Sets the local security context.

Sets the local security context. This is used by the client to negotiate local authentication.

SetTarget ( string target ) : void

Sets the authentication target.

Sets the authentication target.

SetTargetInformation ( byte targetInformation ) : void

Sets the target information block.

Sets the target information block. The target information block is used by the client to create an NTLMv2 response.

ToByteArray ( ) : byte[]
ToString ( ) : string
Type2Message ( Type1Message type1 ) : System

Creates a Type-2 message in response to the given Type-1 message using default values from the current environment.

Creates a Type-2 message in response to the given Type-1 message using default values from the current environment.

Type2Message ( Type1Message type1, byte challenge, string target ) : System

Creates a Type-2 message in response to the given Type-1 message.

Creates a Type-2 message in response to the given Type-1 message.

Type2Message ( byte material ) : System

Creates a Type-2 message using the given raw Type-2 material.

Creates a Type-2 message using the given raw Type-2 material.

Type2Message ( int flags, byte challenge, string target ) : System

Creates a Type-2 message with the specified parameters.

Creates a Type-2 message with the specified parameters.

Private Methods

Method Description
Parse ( byte material ) : void
Type2Message ( ) : System

Method Details

GetChallenge() public method

Returns the challenge for this message.
Returns the challenge for this message.
public GetChallenge ( ) : byte[]
return byte[]

GetContext() public method

Returns the local security context.
Returns the local security context.
public GetContext ( ) : byte[]
return byte[]

GetDefaultDomain() public static method

Returns the default domain from the current environment.
Returns the default domain from the current environment.
public static GetDefaultDomain ( ) : string
return string

GetDefaultFlags() public static method

Returns the default flags for a generic Type-2 message in the current environment.
Returns the default flags for a generic Type-2 message in the current environment.
public static GetDefaultFlags ( ) : int
return int

GetDefaultFlags() public static method

Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment.
Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment.
public static GetDefaultFlags ( Type1Message type1 ) : int
type1 Type1Message
return int

GetDefaultTargetInformation() public static method

public static GetDefaultTargetInformation ( ) : byte[]
return byte[]

GetTarget() public method

Returns the authentication target.
Returns the authentication target.
public GetTarget ( ) : string
return string

GetTargetInformation() public method

Returns the target information block.
Returns the target information block.
public GetTargetInformation ( ) : byte[]
return byte[]

SetChallenge() public method

Sets the challenge for this message.
Sets the challenge for this message.
public SetChallenge ( byte challenge ) : void
challenge byte The challenge from the domain controller/server.
return void

SetContext() public method

Sets the local security context.
Sets the local security context. This is used by the client to negotiate local authentication.
public SetContext ( byte context ) : void
context byte The local security context.
return void

SetTarget() public method

Sets the authentication target.
Sets the authentication target.
public SetTarget ( string target ) : void
target string The authentication target.
return void

SetTargetInformation() public method

Sets the target information block.
Sets the target information block. The target information block is used by the client to create an NTLMv2 response.
public SetTargetInformation ( byte targetInformation ) : void
targetInformation byte The target information block.
return void

ToByteArray() public method

public ToByteArray ( ) : byte[]
return byte[]

ToString() public method

public ToString ( ) : string
return string

Type2Message() public method

Creates a Type-2 message in response to the given Type-1 message using default values from the current environment.
Creates a Type-2 message in response to the given Type-1 message using default values from the current environment.
public Type2Message ( Type1Message type1 ) : System
type1 Type1Message The Type-1 message which this represents a response to.
return System

Type2Message() public method

Creates a Type-2 message in response to the given Type-1 message.
Creates a Type-2 message in response to the given Type-1 message.
public Type2Message ( Type1Message type1, byte challenge, string target ) : System
type1 Type1Message The Type-1 message which this represents a response to.
challenge byte The challenge from the domain controller/server.
target string The authentication target.
return System

Type2Message() public method

Creates a Type-2 message using the given raw Type-2 material.
Creates a Type-2 message using the given raw Type-2 material.
If an error occurs while parsing the material. ///
public Type2Message ( byte material ) : System
material byte The raw Type-2 material used to construct this message.
return System

Type2Message() public method

Creates a Type-2 message with the specified parameters.
Creates a Type-2 message with the specified parameters.
public Type2Message ( int flags, byte challenge, string target ) : System
flags int The flags to apply to this message.
challenge byte The challenge from the domain controller/server.
target string The authentication target.
return System