Botan 2.19.1
Crypto and TLS for C&
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 56 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 61 of file x509_ext.h.

61: 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 59 of file x509_ext.h.

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

◆ get_constraints()

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

Definition at line 63 of file x509_ext.h.

63{ return m_constraints; }

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

◆ oid_of()

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

Implements Botan::Certificate_Extension.

Definition at line 66 of file x509_ext.h.

66{ return static_oid(); }

◆ static_oid()

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

Definition at line 65 of file x509_ext.h.

65{ 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: