#include <Cookie.h>
Public Member Functions | |
Constructors and assignment operators | |
| Credentials () | |
| Default constructor. | |
| Credentials (const Authority &) | |
| Construct from a cookie authority. | |
| Credentials (const Path &) | |
| Construct from a cookie path. | |
| Credentials (const Expires &) | |
| Construct from an expiration time. | |
| Credentials (const Authority &, const Path &) | |
| Construct from a cookie authority and path. | |
| Credentials (const Authority &, const Path &, const Expires &) | |
| Construct from several credentials. | |
| Credentials (const Credentials &) | |
| Copy constructor. | |
| ~Credentials () throw () | |
| Destructor. | |
| Credentials & | operator= (const Credentials &) |
| Assignment operator. | |
| void | swap (Credentials &) throw () |
| Swap contents with another object. | |
Data access | |
| Authority | authority () const |
| Retrieve the cookie authority. | |
| Authority & | authority () |
| Reference to the cookie authority. | |
| Path | path () const |
| Retrieve the cookie path. | |
| Path & | path () |
| Reference to the cookie path. | |
| Expires | expires () const |
| Retrieve the cookie expiration time. | |
| Expires & | expires () |
| Reference to the cookie expiration time. | |
| bool | persist () const |
| Can the cookie persist? | |
| bool | secure () const |
| Is the cookie secure? | |
| bool & | secure () |
| Reference to the secure credential. | |
Encapsulate the credentials associated with an HTTP cookie, which are described by the following reference.
In addition to the authority, path, and expiration credentials, which are described in connection with the corresponding classes, the following credentials are available.
If a cookie is marked secure, it will only be transmitted if the communications channel with the host is a secure one. Currently this means that secure cookies will only be sent to HTTPS (HTTP over SSL) servers.
If secure is not specified, a cookie is considered safe to be sent in the clear over unsecured channels.
A cookie may persist beyond the lifetime of the current session. This is always the case if the expire credential is given as a constructor argument or referenced as an lvalue.
Definition at line 339 of file Cookie.h.
1.4.5