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

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::CRL_Number:
Botan::Certificate_Extension

Public Member Functions

std::unique_ptr< Certificate_Extensioncopy () const override
 
 CRL_Number ()
 
 CRL_Number (size_t n)
 
size_t get_crl_number () const
 
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

CRL Number Extension

Definition at line 339 of file x509_ext.h.

Constructor & Destructor Documentation

◆ CRL_Number() [1/2]

Botan::Cert_Extension::CRL_Number::CRL_Number ( )
inline

Definition at line 343 of file x509_ext.h.

343: m_has_value(false), m_crl_number(0) {}

◆ CRL_Number() [2/2]

Botan::Cert_Extension::CRL_Number::CRL_Number ( size_t n)
inline

Definition at line 345 of file x509_ext.h.

345: m_has_value(true), m_crl_number(n) {}

Member Function Documentation

◆ copy()

std::unique_ptr< Certificate_Extension > Botan::Cert_Extension::CRL_Number::copy ( ) const
overridevirtual

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 685 of file x509_ext.cpp.

685 {
686 if(!m_has_value) {
687 throw Invalid_State("CRL_Number::copy: Not set");
688 }
689 return std::make_unique<CRL_Number>(m_crl_number);
690}

◆ get_crl_number()

size_t Botan::Cert_Extension::CRL_Number::get_crl_number ( ) const

Definition at line 675 of file x509_ext.cpp.

675 {
676 if(!m_has_value) {
677 throw Invalid_State("CRL_Number::get_crl_number: Not set");
678 }
679 return m_crl_number;
680}

◆ oid_of()

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

Implements Botan::Certificate_Extension.

Definition at line 351 of file x509_ext.h.

351{ return static_oid(); }

◆ static_oid()

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

Definition at line 349 of file x509_ext.h.

349{ return OID("2.5.29.20"); }

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