Class BasicAuthenticationMethod
public class BasicAuthenticationMethod : ProxyAuthenticationMethod
- Inheritance
-
BasicAuthenticationMethod
- Inherited Members
Constructors
BasicAuthenticationMethod(string, string)
public BasicAuthenticationMethod(string username, string password)
Parameters
Properties
AuthenticationType
public override 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 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