Create Method
Definition
- Namespace
- Cuemon.AspNetCore.Authentication.Basic
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
Create(string)
Creates an instance of BasicAuthorizationHeader from the specified parameters.
public static BasicAuthorizationHeader Create(string authorizationHeader)
Parameters
authorizationHeaderstringThe raw HTTP authorization header.
Returns
- BasicAuthorizationHeader
An instance of BasicAuthorizationHeader.
Exceptions
- ArgumentNullException
authorizationHeadercannot be null.- ArgumentException
authorizationHeadercannot be empty or consist only of white-space characters.