Table of Contents

Class BasicAuthenticationMethod

Namespace
Fluxzy.Core
Assembly
Fluxzy.Core.dll
public class BasicAuthenticationMethod : ProxyAuthenticationMethod
Inheritance
BasicAuthenticationMethod
Inherited Members

Constructors

BasicAuthenticationMethod(string, string)

public BasicAuthenticationMethod(string username, string password)

Parameters

username string
password string

Properties

AuthenticationType

public override ProxyAuthenticationType AuthenticationType { get; }

Property Value

ProxyAuthenticationType

Methods

GetUnauthorizedResponse(IPEndPoint, IPEndPoint, RequestHeader)

Returns the raw byte response to send to client in case of unauthorized request. Raw bytes must be a valid HTTP response (starting with HTTP/1.1 and ending with double CRLF).

public override byte[] GetUnauthorizedResponse(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, RequestHeader requestHeader)

Parameters

localEndPoint IPEndPoint
remoteEndPoint IPEndPoint
requestHeader RequestHeader

Returns

byte[]

ValidateAuthentication(IPEndPoint, IPEndPoint, RequestHeader)

Validate an authentication request. Return true if the request is authorized, false otherwise.

public override bool ValidateAuthentication(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, RequestHeader requestHeader)

Parameters

localEndPoint IPEndPoint
remoteEndPoint IPEndPoint
requestHeader RequestHeader

Returns

bool