Poco::RemotingNG

class Credentials

File Information

Library: RemotingNG
Package: Transport
Header: Poco/RemotingNG/Credentials.h

Description

This class contains credentials for authentication, in the form of key-value pairs (attributes).

The content of a Credentials object depends upon a specific authentication mechanism and is implementation specific.

In case of username/password credentials, a Credentials object would contain a username (ATTR_USERNAME, "n") and a password (ATTR_PASSWORD, "p") attribute.

Inheritance

Direct Base Classes: AttributedObject

All Base Classes: AttributedObject

Member Summary

Member Functions: operator =

Inherited Functions: clearAttributes, countAttributes, enumerateAttributes, getAttribute, hasAttribute, operator =, removeAttribute, setAttribute

Constructors

Credentials

Credentials();

Creates an empty Credentials object.

Credentials

Credentials(
    const Credentials & other
);

Creates a Credentials object by copying the attributes from another one.

Credentials

Credentials(
    Credentials && other
) noexcept;

Creates a Credentials object by moving the attributes from another one.

Destructor

~Credentials virtual

~Credentials();

Destroys the Credentials object.

Member Functions

operator =

Credentials & operator = (
    const Credentials & other
);

Assigns the attributes from another Credentials object.

operator =

Credentials & operator = (
    Credentials && other
) noexcept;

Assigns the attributes from another Credentials object.

Variables

ATTR_CREATED static

static const std::string ATTR_CREATED;

Attribute named "c" containing a credentials creation date.

ATTR_ITERATIONS static

static const std::string ATTR_ITERATIONS;

Attribute named "i" containing the number of iterations for PBKDF2.

ATTR_MECHANISM static

static const std::string ATTR_MECHANISM;

Attribute named "#mechanism" containing the authentication mechanism.

ATTR_NONCE static

static const std::string ATTR_NONCE;

Attribute named "r" containing a nonce.

ATTR_PASSWORD static

static const std::string ATTR_PASSWORD;

Attribute named "p" containing a password or proof.

ATTR_SALT static

static const std::string ATTR_SALT;

Attribute named "s" containing a password salt.

ATTR_SIGNATURE static

static const std::string ATTR_SIGNATURE;

Attribute named "v" containing a signature.

ATTR_TOKEN static

static const std::string ATTR_TOKEN;

Attribute named "t" containing a bearer token.

ATTR_USERNAME static

static const std::string ATTR_USERNAME;

Attribute named "n" containing a username.

Securely control IoT edge devices from anywhere   Connect a Device