Apache Mesos
Public Member Functions | Public Attributes | List of all members
process::http::authentication::Principal Struct Reference

Contains information associated with an authenticated principal. More...

#include <authenticator.hpp>

Public Member Functions

 Principal ()=delete
 
 Principal (const Option< std::string > &_value)
 
 Principal (const Option< std::string > &_value, const hashmap< std::string, std::string > &_claims)
 
bool operator== (const Principal &that) const
 
bool operator== (const std::string &that) const
 
bool operator!= (const std::string &that) const
 

Public Attributes

Option< std::string > value
 
hashmap< std::string, std::string > claims
 

Detailed Description

Contains information associated with an authenticated principal.

At least one of the following two members must be set: value : Optional string which is used to identify this principal. claims: Map containing key-value pairs associated with this principal.

Constructor & Destructor Documentation

process::http::authentication::Principal::Principal ( )
delete
process::http::authentication::Principal::Principal ( const Option< std::string > &  _value)
inline
process::http::authentication::Principal::Principal ( const Option< std::string > &  _value,
const hashmap< std::string, std::string > &  _claims 
)
inline

Member Function Documentation

bool process::http::authentication::Principal::operator!= ( const std::string &  that) const
inline
bool process::http::authentication::Principal::operator== ( const Principal that) const
inline
bool process::http::authentication::Principal::operator== ( const std::string &  that) const
inline

Member Data Documentation

hashmap<std::string, std::string> process::http::authentication::Principal::claims
Option<std::string> process::http::authentication::Principal::value

The documentation for this struct was generated from the following file: