Table of Contents

Class BasicAuthorizationHeaderBuilder

Namespace
Cuemon.AspNetCore.Authentication.Basic
Assembly
Cuemon.AspNetCore.Authentication.dll

Provides a way to fluently represent a HTTP Basic Authentication header.

public class BasicAuthorizationHeaderBuilder : AuthorizationHeaderBuilder<BasicAuthorizationHeader, BasicAuthorizationHeaderBuilder>
Inheritance
BasicAuthorizationHeaderBuilder
Inherited Members

Constructors

BasicAuthorizationHeaderBuilder()

Initializes a new instance of the BasicAuthorizationHeaderBuilder class.

public BasicAuthorizationHeaderBuilder()

Methods

AddPassword(String)

Adds the client identifier that is the public key of the signing process.

public BasicAuthorizationHeaderBuilder AddPassword(string password)

Parameters

password String

The client identifier that is the public key of the signing process.

Returns

BasicAuthorizationHeaderBuilder

An BasicAuthorizationHeaderBuilder that can be used to further build the HTTP HMAC Authentication header.

AddUserName(String)

Adds the credential scope that defines the remote resource.

public BasicAuthorizationHeaderBuilder AddUserName(string username)

Parameters

username String

The credential scope that defines the remote resource.

Returns

BasicAuthorizationHeaderBuilder

An BasicAuthorizationHeaderBuilder that can be used to further build the HTTP HMAC Authentication header.

Build()

Builds an instance of BasicAuthorizationHeader that implements AuthorizationHeader.

public override BasicAuthorizationHeader Build()

Returns

BasicAuthorizationHeader

An instance of BasicAuthorizationHeader.