Table of Contents

Class ProxyAuthenticationMethod

Namespace
Fluxzy.Core
Assembly
Fluxzy.Core.dll
public abstract class ProxyAuthenticationMethod
Inheritance
ProxyAuthenticationMethod
Derived
Inherited Members

Properties

AuthenticationType

public abstract 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 abstract 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 abstract bool ValidateAuthentication(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, RequestHeader requestHeader)

Parameters

localEndPoint IPEndPoint
remoteEndPoint IPEndPoint
requestHeader RequestHeader

Returns

bool