Poco::RemotingNG

class Credentials

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.

Destructor

~Credentials virtual

~Credentials();

Destroys the Credentials object.

Member Functions

operator =

Credentials & operator = (
    const Credentials & other
);

Assigns the attributes from another Credentials object.

Variables

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.