OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AuthenticationData Class Reference

#include <bgp_config.h>

Public Types

enum  KeyType { NIL = 0, MD5 }
 
typedef
AuthenticationKeyChain::iterator 
iterator
 
typedef
AuthenticationKeyChain::const_iterator 
const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
 AuthenticationData ()
 
 AuthenticationData (KeyType type, const AuthenticationKeyChain &chain)
 
bool operator== (const AuthenticationData &rhs) const
 
bool operator< (const AuthenticationData &rhs) const
 
AuthenticationDataoperator= (const AuthenticationData &rhs)
 
const AuthenticationKeyFind (int key_id) const
 
bool IsMd5 () const
 
bool Empty () const
 
void Clear ()
 
std::string KeyTypeToString () const
 
void AddKeyToKeyChain (const AuthenticationKey &key)
 
KeyType key_type () const
 
void set_key_type (KeyType in_type)
 
const AuthenticationKeyChainkey_chain () const
 
void set_key_chain (const AuthenticationKeyChain &in_chain)
 
std::vector< std::string > KeysToString () const
 
std::vector< std::string > KeysToStringDetail () const
 

Static Public Member Functions

static std::string KeyTypeToString (KeyType key_type)
 

Private Attributes

KeyType key_type_
 
AuthenticationKeyChain key_chain_
 

Detailed Description

Definition at line 41 of file bgp_config.h.

Member Typedef Documentation

typedef AuthenticationKeyChain::const_iterator AuthenticationData::const_iterator

Definition at line 48 of file bgp_config.h.

typedef AuthenticationKeyChain::iterator AuthenticationData::iterator

Definition at line 47 of file bgp_config.h.

Member Enumeration Documentation

Enumerator
NIL 
MD5 

Definition at line 43 of file bgp_config.h.

Constructor & Destructor Documentation

AuthenticationData::AuthenticationData ( )

Definition at line 49 of file bgp_config.cc.

AuthenticationData::AuthenticationData ( KeyType  type,
const AuthenticationKeyChain chain 
)

Definition at line 52 of file bgp_config.cc.

Member Function Documentation

void AuthenticationData::AddKeyToKeyChain ( const AuthenticationKey key)

Definition at line 91 of file bgp_config.cc.

iterator AuthenticationData::begin ( )
inline

Definition at line 50 of file bgp_config.h.

const_iterator AuthenticationData::begin ( ) const
inline

Definition at line 52 of file bgp_config.h.

void AuthenticationData::Clear ( )

Definition at line 110 of file bgp_config.cc.

bool AuthenticationData::Empty ( ) const

Definition at line 106 of file bgp_config.cc.

iterator AuthenticationData::end ( )
inline

Definition at line 51 of file bgp_config.h.

const_iterator AuthenticationData::end ( ) const
inline

Definition at line 53 of file bgp_config.h.

const AuthenticationKey * AuthenticationData::Find ( int  key_id) const

Definition at line 95 of file bgp_config.cc.

bool AuthenticationData::IsMd5 ( ) const
inline

Definition at line 63 of file bgp_config.h.

const AuthenticationKeyChain& AuthenticationData::key_chain ( ) const
inline

Definition at line 74 of file bgp_config.h.

KeyType AuthenticationData::key_type ( ) const
inline

Definition at line 70 of file bgp_config.h.

vector< string > AuthenticationData::KeysToString ( ) const

Definition at line 132 of file bgp_config.cc.

Here is the call graph for this function:

vector< string > AuthenticationData::KeysToStringDetail ( ) const

Definition at line 143 of file bgp_config.cc.

Here is the call graph for this function:

string AuthenticationData::KeyTypeToString ( ) const

Definition at line 114 of file bgp_config.cc.

string AuthenticationData::KeyTypeToString ( KeyType  key_type)
static

Definition at line 123 of file bgp_config.cc.

bool AuthenticationData::operator< ( const AuthenticationData rhs) const

Definition at line 57 of file bgp_config.cc.

Here is the call graph for this function:

AuthenticationData & AuthenticationData::operator= ( const AuthenticationData rhs)

Definition at line 84 of file bgp_config.cc.

Here is the call graph for this function:

bool AuthenticationData::operator== ( const AuthenticationData rhs) const

Definition at line 63 of file bgp_config.cc.

Here is the call graph for this function:

void AuthenticationData::set_key_chain ( const AuthenticationKeyChain in_chain)
inline

Definition at line 75 of file bgp_config.h.

void AuthenticationData::set_key_type ( KeyType  in_type)
inline

Definition at line 71 of file bgp_config.h.

Member Data Documentation

AuthenticationKeyChain AuthenticationData::key_chain_
private

Definition at line 83 of file bgp_config.h.

KeyType AuthenticationData::key_type_
private

Definition at line 82 of file bgp_config.h.


The documentation for this class was generated from the following files: