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

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::Extended_Key_Usage:
Botan::Certificate_Extension

Public Member Functions

std::unique_ptr< Certificate_Extensioncopy () const override
 
 Extended_Key_Usage ()=default
 
 Extended_Key_Usage (const std::vector< OID > &o)
 
const std::vector< OID > & object_identifiers () const
 
OID oid_of () const override
 
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

Extended Key Usage Extension

Definition at line 202 of file x509_ext.h.

Constructor & Destructor Documentation

◆ Extended_Key_Usage() [1/2]

Botan::Cert_Extension::Extended_Key_Usage::Extended_Key_Usage ( )
default

◆ Extended_Key_Usage() [2/2]

Botan::Cert_Extension::Extended_Key_Usage::Extended_Key_Usage ( const std::vector< OID > & o)
inlineexplicit

Definition at line 210 of file x509_ext.h.

210: m_oids(o) {}

Member Function Documentation

◆ copy()

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

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 204 of file x509_ext.h.

204 {
205 return std::make_unique<Extended_Key_Usage>(m_oids);
206 }

◆ object_identifiers()

const std::vector< OID > & Botan::Cert_Extension::Extended_Key_Usage::object_identifiers ( ) const
inline

Definition at line 212 of file x509_ext.h.

212{ return m_oids; }

Referenced by Botan::PKCS10_Request::ex_constraints().

◆ oid_of()

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

Implements Botan::Certificate_Extension.

Definition at line 216 of file x509_ext.h.

216{ return static_oid(); }

◆ static_oid()

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

Definition at line 214 of file x509_ext.h.

214{ return OID("2.5.29.37"); }

◆ 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: