BasicAuthorizationHeader Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Authentication.Basic
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
BasicAuthorizationHeader(string, string)
Initializes a new instance of the BasicAuthorizationHeader class.
public BasicAuthorizationHeader(string username, string password)
Parameters
Exceptions
- ArgumentNullException
usernamecannot be null -or-passwordcannot be null.- ArgumentException
usernamecannot be empty or consist only of white-space characters -or-passwordcannot be empty or consist only of white-space characters -or-usernamedoes not allow the presence of the colon character.