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

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::CRL_ReasonCode:
Botan::Certificate_Extension

Public Member Functions

CRL_ReasonCodecopy () const override
 
 CRL_ReasonCode (CRL_Code r=UNSPECIFIED)
 
CRL_Code get_reason () const
 
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

CRL Entry Reason Code Extension

Definition at line 624 of file x509_ext.h.

Constructor & Destructor Documentation

◆ CRL_ReasonCode()

Botan::Cert_Extension::CRL_ReasonCode::CRL_ReasonCode ( CRL_Code  r = UNSPECIFIED)
inlineexplicit

Definition at line 630 of file x509_ext.h.

630 : m_reason(r) {}

Member Function Documentation

◆ copy()

CRL_ReasonCode* Botan::Cert_Extension::CRL_ReasonCode::copy ( ) const
inlineoverridevirtual

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 627 of file x509_ext.h.

628  { return new CRL_ReasonCode(m_reason); }
CRL_ReasonCode(CRL_Code r=UNSPECIFIED)
Definition: x509_ext.h:630

◆ get_reason()

CRL_Code Botan::Cert_Extension::CRL_ReasonCode::get_reason ( ) const
inline

Definition at line 632 of file x509_ext.h.

632 { return m_reason; }

◆ oid_of()

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

Implements Botan::Certificate_Extension.

Definition at line 635 of file x509_ext.h.

635 { return static_oid(); }

◆ static_oid()

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

Definition at line 634 of file x509_ext.h.

634 { return OID("2.5.29.21"); }

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