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

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::Key_Usage:

Public Member Functions

Key_Usagecopy () const override
Key_Constraints get_constraints () const
 Key_Usage (Key_Constraints c=NO_CONSTRAINTS)
OID oid_of () const override
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)

Static Public Member Functions

static OID static_oid ()

Detailed Description

Key Usage Constraints Extension

Definition at line 326 of file x509_ext.h.

Constructor & Destructor Documentation

◆ Key_Usage()

Botan::Cert_Extension::Key_Usage::Key_Usage ( Key_Constraints  c = NO_CONSTRAINTS)

Definition at line 331 of file x509_ext.h.

331 : m_constraints(c) {}

Member Function Documentation

◆ copy()

Key_Usage* Botan::Cert_Extension::Key_Usage::copy ( ) const

Make a copy of this extension

copy of this

Implements Botan::Certificate_Extension.

Definition at line 329 of file x509_ext.h.

329 { return new Key_Usage(m_constraints); }
Key_Usage(Key_Constraints c=NO_CONSTRAINTS)
Definition: x509_ext.h:331

◆ get_constraints()

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

Definition at line 333 of file x509_ext.h.

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

333 { return m_constraints; }

◆ oid_of()

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

Implements Botan::Certificate_Extension.

Definition at line 336 of file x509_ext.h.

336 { return static_oid(); }

◆ static_oid()

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

Definition at line 335 of file x509_ext.h.

335 { return OID(""); }

◆ 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 

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