Class NoAuthenticationMethod
public class NoAuthenticationMethod : ProxyAuthenticationMethod
- Inheritance
-
NoAuthenticationMethod
- Inherited Members
Properties
AuthenticationType
public override ProxyAuthenticationType AuthenticationType { get; }
Property Value
Instance
public static NoAuthenticationMethod Instance { 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 override 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 override bool ValidateAuthentication(IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, RequestHeader requestHeader)
Parameters
localEndPointIPEndPointremoteEndPointIPEndPointrequestHeaderRequestHeader