sptk2 logo
SPTK Home Page
Public Member Functions | Protected Member Functions | List of all members
sptk::HttpConnect::Authorization Class Reference

#include <HttpConnect.h>

Inheritance diagram for sptk::HttpConnect::Authorization:
sptk::HttpConnect::BasicAuthorization sptk::HttpConnect::BearerAuthorization

Public Member Functions

 Authorization (const Authorization &other)=default
 
Authorizationoperator= (const Authorization &other)=default
 
String method () const
 
String value () const
 

Protected Member Functions

 Authorization ()=delete
 
 Authorization (const String &method, const String &username, const String &password, const String &jwtToken)
 

Detailed Description

HTTP authorization

Constructor & Destructor Documentation

◆ Authorization() [1/3]

sptk::HttpConnect::Authorization::Authorization ( const Authorization other)
default

Copy constructor

Parameters
otherOther object

◆ Authorization() [2/3]

sptk::HttpConnect::Authorization::Authorization ( )
protecteddelete

Constructor

◆ Authorization() [3/3]

sptk::HttpConnect::Authorization::Authorization ( const String method,
const String username,
const String password,
const String jwtToken 
)
explicitprotected

Basic or Bearer authorization

Parameters
methodAuth method, 'basic' or 'bearer'
usernameUsername, basic authorization only
passwordPassword, basic authorization only
jwtTokenJWT token, bearer authorization only

Member Function Documentation

◆ method()

String sptk::HttpConnect::Authorization::method ( ) const
inline

Get authorization method name

Returns
authorization method name

◆ operator=()

Authorization & sptk::HttpConnect::Authorization::operator= ( const Authorization other)
default

Copy assignment

Parameters
otherOther object

◆ value()

String sptk::HttpConnect::Authorization::value ( ) const
inline

Get authorization metod value

Returns
authorization metod value

The documentation for this class was generated from the following file:

Fri Oct 14 2022 09:58:42: SPTK 5.4.1