OpenSDN source code
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

◆ const_iterator

typedef AuthenticationKeyChain::const_iterator AuthenticationData::const_iterator

Definition at line 48 of file bgp_config.h.

◆ iterator

typedef AuthenticationKeyChain::iterator AuthenticationData::iterator

Definition at line 47 of file bgp_config.h.

Member Enumeration Documentation

◆ KeyType

Enumerator
NIL 
MD5 

Definition at line 43 of file bgp_config.h.

Constructor & Destructor Documentation

◆ AuthenticationData() [1/2]

AuthenticationData::AuthenticationData ( )

Definition at line 49 of file bgp_config.cc.

◆ AuthenticationData() [2/2]

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

Definition at line 52 of file bgp_config.cc.

Member Function Documentation

◆ AddKeyToKeyChain()

void AuthenticationData::AddKeyToKeyChain ( const AuthenticationKey key)

Definition at line 91 of file bgp_config.cc.

◆ begin() [1/2]

iterator AuthenticationData::begin ( )
inline

Definition at line 50 of file bgp_config.h.

◆ begin() [2/2]

const_iterator AuthenticationData::begin ( ) const
inline

Definition at line 52 of file bgp_config.h.

◆ Clear()

void AuthenticationData::Clear ( )

Definition at line 110 of file bgp_config.cc.

◆ Empty()

bool AuthenticationData::Empty ( ) const

Definition at line 106 of file bgp_config.cc.

◆ end() [1/2]

iterator AuthenticationData::end ( )
inline

Definition at line 51 of file bgp_config.h.

◆ end() [2/2]

const_iterator AuthenticationData::end ( ) const
inline

Definition at line 53 of file bgp_config.h.

◆ Find()

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

Definition at line 95 of file bgp_config.cc.

◆ IsMd5()

bool AuthenticationData::IsMd5 ( ) const
inline

Definition at line 63 of file bgp_config.h.

◆ key_chain()

const AuthenticationKeyChain& AuthenticationData::key_chain ( ) const
inline

Definition at line 74 of file bgp_config.h.

◆ key_type()

KeyType AuthenticationData::key_type ( ) const
inline

Definition at line 70 of file bgp_config.h.

◆ KeysToString()

vector< string > AuthenticationData::KeysToString ( ) const

Definition at line 132 of file bgp_config.cc.

Here is the call graph for this function:

◆ KeysToStringDetail()

vector< string > AuthenticationData::KeysToStringDetail ( ) const

Definition at line 143 of file bgp_config.cc.

Here is the call graph for this function:

◆ KeyTypeToString() [1/2]

string AuthenticationData::KeyTypeToString ( ) const

Definition at line 114 of file bgp_config.cc.

◆ KeyTypeToString() [2/2]

string AuthenticationData::KeyTypeToString ( KeyType  key_type)
static

Definition at line 123 of file bgp_config.cc.

Here is the call graph for this function:

◆ operator<()

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

Definition at line 57 of file bgp_config.cc.

Here is the call graph for this function:

◆ operator=()

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

Definition at line 84 of file bgp_config.cc.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 63 of file bgp_config.cc.

Here is the call graph for this function:

◆ set_key_chain()

void AuthenticationData::set_key_chain ( const AuthenticationKeyChain in_chain)
inline

Definition at line 75 of file bgp_config.h.

◆ set_key_type()

void AuthenticationData::set_key_type ( KeyType  in_type)
inline

Definition at line 71 of file bgp_config.h.

Member Data Documentation

◆ key_chain_

AuthenticationKeyChain AuthenticationData::key_chain_
private

Definition at line 83 of file bgp_config.h.

◆ key_type_

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: