C# Class SharpCifs.Ntlmssp.Type2Message

Represents an NTLMSSP Type-2 message.
Represents an NTLMSSP Type-2 message.
Inheritance: NtlmMessage
Afficher le fichier Open project: brandonprry/Potato Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Parse ( byte material ) : void
Type2Message ( ) : System

Method Details

GetChallenge() public méthode

Returns the challenge for this message.
Returns the challenge for this message.
public GetChallenge ( ) : byte[]
Résultat byte[]

GetContext() public méthode

Returns the local security context.
Returns the local security context.
public GetContext ( ) : byte[]
Résultat byte[]

GetDefaultDomain() public static méthode

Returns the default domain from the current environment.
Returns the default domain from the current environment.
public static GetDefaultDomain ( ) : string
Résultat string

GetDefaultFlags() public static méthode

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
Résultat int

GetDefaultFlags() public static méthode

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
Résultat int

GetDefaultTargetInformation() public static méthode

public static GetDefaultTargetInformation ( ) : byte[]
Résultat byte[]

GetTarget() public méthode

Returns the authentication target.
Returns the authentication target.
public GetTarget ( ) : string
Résultat string

GetTargetInformation() public méthode

Returns the target information block.
Returns the target information block.
public GetTargetInformation ( ) : byte[]
Résultat byte[]

SetChallenge() public méthode

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.
Résultat void

SetContext() public méthode

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.
Résultat void

SetTarget() public méthode

Sets the authentication target.
Sets the authentication target.
public SetTarget ( string target ) : void
target string The authentication target.
Résultat void

SetTargetInformation() public méthode

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.
Résultat void

ToByteArray() public méthode

public ToByteArray ( ) : byte[]
Résultat byte[]

ToString() public méthode

public ToString ( ) : string
Résultat string

Type2Message() public méthode

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.
Résultat System

Type2Message() public méthode

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.
Résultat System

Type2Message() public méthode

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.
Résultat System

Type2Message() public méthode

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.
Résultat System