Botan 3.13.0
Crypto and TLS for C&
Botan::Roughtime::Server_Information Struct Referencefinal

#include <roughtime.h>

Public Member Functions

const std::vector< std::string > & addresses () const
const std::string & name () const
const Ed25519_PublicKeypublic_key () const
 Server_Information (std::string_view name, const Ed25519_PublicKey &public_key, const std::vector< std::string > &addresses)

Detailed Description

The name, key and addresses of a Roughtime server

Definition at line 280 of file roughtime.h.

Constructor & Destructor Documentation

◆ Server_Information()

Botan::Roughtime::Server_Information::Server_Information ( std::string_view name,
const Ed25519_PublicKey & public_key,
const std::vector< std::string > & addresses )
inline

Create a server description

Parameters
namethe name of the server
public_keythe long term public key of the server
addressesthe endpoints of the server

Definition at line 288 of file roughtime.h.

290 :
291 m_name{name}, m_public_key{public_key}, m_addresses{addresses} {}
const std::string & name() const
Definition roughtime.h:297
const Ed25519_PublicKey & public_key() const
Definition roughtime.h:303
const std::vector< std::string > & addresses() const
Definition roughtime.h:309

References addresses(), name(), and public_key().

Member Function Documentation

◆ addresses()

const std::vector< std::string > & Botan::Roughtime::Server_Information::addresses ( ) const
inline

Access the server addresses

Returns
the endpoints of the server

Definition at line 309 of file roughtime.h.

309{ return m_addresses; }

Referenced by Server_Information().

◆ name()

const std::string & Botan::Roughtime::Server_Information::name ( ) const
inline

Access the server name

Returns
the name of the server

Definition at line 297 of file roughtime.h.

297{ return m_name; }

Referenced by Server_Information().

◆ public_key()

const Ed25519_PublicKey & Botan::Roughtime::Server_Information::public_key ( ) const
inline

Access the server public key

Returns
the long term public key of the server

Definition at line 303 of file roughtime.h.

303{ return m_public_key; }

Referenced by Server_Information().


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