Helper class for maintaining discovery cookie. More...
#include <saml/util/CommonDomainCookie.h>
Public Member Functions | |
CommonDomainCookie (const char *cookie) | |
Parses a cookie for reading or writing. | |
const std::vector< std::string > & | get () const |
Returns list of IdPs stored in cookie. | |
const char * | set (const char *entityID) |
Adds/moves an IdP to the front of the list. | |
Static Public Attributes | |
static const char | CDCName [] |
Name of cookie ("_saml_idp"). |
Helper class for maintaining discovery cookie.
opensaml::CommonDomainCookie::CommonDomainCookie | ( | const char * | cookie | ) |
Parses a cookie for reading or writing.
cookie | the raw cookie value |
const std::vector<std::string>& opensaml::CommonDomainCookie::get | ( | ) | const |
Returns list of IdPs stored in cookie.
const char* opensaml::CommonDomainCookie::set | ( | const char * | entityID | ) |
Adds/moves an IdP to the front of the list.
entityID | name of IdP to add |