Botan  2.7.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:
Botan::Certificate_Extension

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 317 of file x509_ext.h.

Constructor & Destructor Documentation

◆ Key_Usage()

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

Definition at line 322 of file x509_ext.h.

322 : m_constraints(c) {}

Member Function Documentation

◆ copy()

Key_Usage* 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 320 of file x509_ext.h.

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

◆ get_constraints()

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

Definition at line 324 of file x509_ext.h.

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

324 { return m_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 327 of file x509_ext.h.

327 { return static_oid(); }

◆ static_oid()

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

Definition at line 326 of file x509_ext.h.

326 { return OID("2.5.29.15"); }

◆ 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 
)
virtualinherited

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