C# Класс SharpCifs.Ntlmssp.Type2Message

Represents an NTLMSSP Type-2 message.
Represents an NTLMSSP Type-2 message.
Наследование: NtlmMessage
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Parse ( byte material ) : void
Type2Message ( ) : System

Описание методов

GetChallenge() публичный Метод

Returns the challenge for this message.
Returns the challenge for this message.
public GetChallenge ( ) : byte[]
Результат byte[]

GetContext() публичный Метод

Returns the local security context.
Returns the local security context.
public GetContext ( ) : byte[]
Результат byte[]

GetDefaultDomain() публичный статический Метод

Returns the default domain from the current environment.
Returns the default domain from the current environment.
public static GetDefaultDomain ( ) : string
Результат string

GetDefaultFlags() публичный статический Метод

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
Результат int

GetDefaultFlags() публичный статический Метод

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
Результат int

GetDefaultTargetInformation() публичный статический Метод

public static GetDefaultTargetInformation ( ) : byte[]
Результат byte[]

GetTarget() публичный Метод

Returns the authentication target.
Returns the authentication target.
public GetTarget ( ) : string
Результат string

GetTargetInformation() публичный Метод

Returns the target information block.
Returns the target information block.
public GetTargetInformation ( ) : byte[]
Результат byte[]

SetChallenge() публичный Метод

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.
Результат void

SetContext() публичный Метод

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.
Результат void

SetTarget() публичный Метод

Sets the authentication target.
Sets the authentication target.
public SetTarget ( string target ) : void
target string The authentication target.
Результат void

SetTargetInformation() публичный Метод

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.
Результат void

ToByteArray() публичный Метод

public ToByteArray ( ) : byte[]
Результат byte[]

ToString() публичный Метод

public ToString ( ) : string
Результат string

Type2Message() публичный Метод

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.
Результат System

Type2Message() публичный Метод

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.
Результат System

Type2Message() публичный Метод

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.
Результат System

Type2Message() публичный Метод

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.
Результат System