ClearSilver::Cookie::Credentials Class Reference

HTTP cookie credentials: authority, path, expiration, secure. More...

#include <Cookie.h>

List of all members.

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.
Credentialsoperator= (const Credentials &)
 Assignment operator.
void swap (Credentials &) throw ()
 Swap contents with another object.
Data access
Authority authority () const
 Retrieve the cookie authority.
Authorityauthority ()
 Reference to the cookie authority.
Path path () const
 Retrieve the cookie path.
Pathpath ()
 Reference to the cookie path.
Expires expires () const
 Retrieve the cookie expiration time.
Expiresexpires ()
 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.


Detailed Description

HTTP cookie credentials: authority, path, expiration, secure.

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.


The documentation for this class was generated from the following files:
Generated on Tue May 16 14:50:54 2006 for ClearSilver C++ Library by  doxygen 1.4.5