Class ProxyAuthenticationMethod
public abstract class ProxyAuthenticationMethod
- Inheritance
-
ProxyAuthenticationMethod
- Derived
- Inherited Members
Properties
AuthenticationType
public abstract ProxyAuthenticationType AuthenticationType { get; }
Property Value
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
localEndPointIPEndPointremoteEndPointIPEndPointrequestHeaderRequestHeader
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
localEndPointIPEndPointremoteEndPointIPEndPointrequestHeaderRequestHeader