Botan 3.6.1
Crypto and TLS for C&
Botan::Cert_Extension::Subject_Alternative_Name Class Referencefinal

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::Subject_Alternative_Name:
Botan::Certificate_Extension

Public Member Functions

std::unique_ptr< Certificate_Extensioncopy () const override
 
const AlternativeNameget_alt_name () const
 
OID oid_of () const override
 
 Subject_Alternative_Name (const AlternativeName &name=AlternativeName())
 
virtual void validate (const X509_Certificate &subject, const X509_Certificate &issuer, const std::vector< X509_Certificate > &cert_path, std::vector< std::set< Certificate_Status_Code > > &cert_status, size_t pos)
 

Static Public Member Functions

static OID static_oid ()
 

Detailed Description

Subject Alternative Name Extension

Definition at line 146 of file x509_ext.h.

Constructor & Destructor Documentation

◆ Subject_Alternative_Name()

Botan::Cert_Extension::Subject_Alternative_Name::Subject_Alternative_Name ( const AlternativeName & name = AlternativeName())
inlineexplicit

Definition at line 158 of file x509_ext.h.

158: m_alt_name(name) {}
std::string name

Member Function Documentation

◆ copy()

std::unique_ptr< Certificate_Extension > Botan::Cert_Extension::Subject_Alternative_Name::copy ( ) const
inlineoverridevirtual

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 154 of file x509_ext.h.

154 {
155 return std::make_unique<Subject_Alternative_Name>(get_alt_name());
156 }
const AlternativeName & get_alt_name() const
Definition x509_ext.h:148

◆ get_alt_name()

const AlternativeName & Botan::Cert_Extension::Subject_Alternative_Name::get_alt_name ( ) const
inline

Definition at line 148 of file x509_ext.h.

148{ return m_alt_name; }

◆ oid_of()

OID Botan::Cert_Extension::Subject_Alternative_Name::oid_of ( ) const
inlineoverridevirtual
Returns
OID representing this extension

Implements Botan::Certificate_Extension.

Definition at line 152 of file x509_ext.h.

◆ static_oid()

static OID Botan::Cert_Extension::Subject_Alternative_Name::static_oid ( )
inlinestatic

Definition at line 150 of file x509_ext.h.

150{ return OID("2.5.29.17"); }

◆ validate()

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

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