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

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::Key_Usage:
Botan::Certificate_Extension

Public Member Functions

std::unique_ptr< Certificate_Extensioncopy () const override
 
Key_Constraints get_constraints () const
 
 Key_Usage ()
 
 Key_Usage (Key_Constraints c)
 
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

Key Usage Constraints Extension

Definition at line 54 of file x509_ext.h.

Constructor & Destructor Documentation

◆ Key_Usage() [1/2]

Botan::Cert_Extension::Key_Usage::Key_Usage ( Key_Constraints c)
inlineexplicit

Definition at line 60 of file x509_ext.h.

60: m_constraints(c) {}

◆ Key_Usage() [2/2]

Botan::Cert_Extension::Key_Usage::Key_Usage ( )
inlineexplicit

Definition at line 62 of file x509_ext.h.

Member Function Documentation

◆ copy()

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

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 56 of file x509_ext.h.

56 {
57 return std::make_unique<Key_Usage>(m_constraints);
58 }

◆ get_constraints()

Key_Constraints Botan::Cert_Extension::Key_Usage::get_constraints ( ) const
inline

Definition at line 64 of file x509_ext.h.

64{ return m_constraints; }

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

◆ oid_of()

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

Implements Botan::Certificate_Extension.

Definition at line 68 of file x509_ext.h.

68{ return static_oid(); }

◆ static_oid()

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

Definition at line 66 of file x509_ext.h.

66{ return OID("2.5.29.15"); }

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