#include <HttpAuthentication.h>
Public Types | |
enum class | Type : uint8_t { UNDEFINED , EMPTY , BASIC , BEARER , DIGEST , HOBA , MUTUAL , AWS4_HMAC_SHA256 } |
Public Member Functions | |
HttpAuthentication (String authenticationHeader) | |
HttpAuthentication (const HttpAuthentication &other)=default | |
String | getHeader () const |
const xdoc::SNode & | getData () |
Type | type () |
HTTP authentication data, that is passed through Authentication header of HTTP request. Only Basic and Bearer authentication types are currently supported. The data is parsed upon first getData() call.
|
strong |
HTTP authentication type
|
explicit |
Constructor
authenticationHeader | Authentication HTTP header content |
|
explicitdefault |
Copy constructor
authenticationHeader | Authentication HTTP header content |
const xdoc::SNode & sptk::HttpAuthentication::getData | ( | ) |
Get decoded authentication data (username and password, or JWT)
String sptk::HttpAuthentication::getHeader | ( | ) | const |
Get decoded authentication data (username and password, or JWT)
Type sptk::HttpAuthentication::type | ( | ) |
Get authentication data type