Botan  1.11.34
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::Cert_Extension::Authority_Key_ID Class Referencefinal

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::Authority_Key_ID:
Botan::Certificate_Extension

Public Member Functions

 Authority_Key_ID ()
 
 Authority_Key_ID (const std::vector< byte > &k)
 
Authority_Key_IDcopy () const override
 
std::vector< byteget_key_id () const
 
virtual OID oid_of () const
 
virtual void validate (const X509_Certificate &subject, const X509_Certificate &issuer, const std::vector< std::shared_ptr< const X509_Certificate >> &cert_path, std::vector< std::set< Certificate_Status_Code >> &cert_status, size_t pos)
 

Detailed Description

Authority Key Identifier Extension

Definition at line 197 of file x509_ext.h.

Constructor & Destructor Documentation

§ Authority_Key_ID() [1/2]

Botan::Cert_Extension::Authority_Key_ID::Authority_Key_ID ( )
inline

Definition at line 203 of file x509_ext.h.

203 {}

§ Authority_Key_ID() [2/2]

Botan::Cert_Extension::Authority_Key_ID::Authority_Key_ID ( const std::vector< byte > &  k)
inlineexplicit

Definition at line 204 of file x509_ext.h.

204 : m_key_id(k) {}

Member Function Documentation

§ copy()

Authority_Key_ID* Botan::Cert_Extension::Authority_Key_ID::copy ( ) const
inlineoverridevirtual

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 200 of file x509_ext.h.

201  { return new Authority_Key_ID(m_key_id); }

§ get_key_id()

std::vector<byte> Botan::Cert_Extension::Authority_Key_ID::get_key_id ( ) const
inline

Definition at line 206 of file x509_ext.h.

206 { return m_key_id; }

§ oid_of()

OID Botan::Certificate_Extension::oid_of ( ) const
virtualinherited
Returns
OID representing this extension

Reimplemented in Botan::Cert_Extension::Unknown_Critical_Extension.

Definition at line 76 of file x509_ext.cpp.

References Botan::OIDS::lookup().

Referenced by Botan::Extensions::add(), and Botan::Extensions::encode_into().

77  {
78  return OIDS::lookup(oid_name());
79  }
virtual std::string oid_name() const =0
std::string lookup(const OID &oid)
Definition: oids.cpp:18

§ validate()

void Botan::Certificate_Extension::validate ( const X509_Certificate subject,
const X509_Certificate issuer,
const std::vector< std::shared_ptr< const X509_Certificate >> &  cert_path,
std::vector< std::set< Certificate_Status_Code >> &  cert_status,
size_t  pos 
)
virtualinherited

Reimplemented in Botan::Cert_Extension::Unknown_Critical_Extension, and Botan::Cert_Extension::Name_Constraints.

Definition at line 84 of file x509_ext.cpp.

88  {
89  }

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