PcapPlusPlus  Next
pcpp::X509KeyUsageExtension Class Reference

#include <X509ExtensionDataDecoder.h>

Inheritance diagram for pcpp::X509KeyUsageExtension:
pcpp::X509ExtensionData

Public Member Functions

bool isDigitalSignature () const
 
bool isNonRepudiation () const
 
bool isKeyEncipherment () const
 
bool isDataEncipherment () const
 
bool isKeyAgreement () const
 
bool isKeyCertSign () const
 
bool isCRLSign () const
 
bool isEncipherOnly () const
 
bool isDecipherOnly () const
 
- Public Member Functions inherited from pcpp::X509ExtensionData
template<class X509ExtensionDataType >
X509ExtensionDataType * castAs ()
 

Detailed Description

Represents the data for the key usage extension

Member Function Documentation

◆ isCRLSign()

bool pcpp::X509KeyUsageExtension::isCRLSign ( ) const
Returns
True if the CRL signing bit is set, false otherwise

◆ isDataEncipherment()

bool pcpp::X509KeyUsageExtension::isDataEncipherment ( ) const
Returns
True if the data encipherment bit is set, false otherwise

◆ isDecipherOnly()

bool pcpp::X509KeyUsageExtension::isDecipherOnly ( ) const
Returns
True if the decipher-only bit is set, false otherwise

◆ isDigitalSignature()

bool pcpp::X509KeyUsageExtension::isDigitalSignature ( ) const
Returns
True if the digital signature bit is set, false otherwise

◆ isEncipherOnly()

bool pcpp::X509KeyUsageExtension::isEncipherOnly ( ) const
Returns
True if the encipher-only bit is set, false otherwise

◆ isKeyAgreement()

bool pcpp::X509KeyUsageExtension::isKeyAgreement ( ) const
Returns
True if the key agreement bit is set, false otherwise

◆ isKeyCertSign()

bool pcpp::X509KeyUsageExtension::isKeyCertSign ( ) const
Returns
True if the key certificate signing bit is set, false otherwise

◆ isKeyEncipherment()

bool pcpp::X509KeyUsageExtension::isKeyEncipherment ( ) const
Returns
True if the key encipherment bit is set, false otherwise

◆ isNonRepudiation()

bool pcpp::X509KeyUsageExtension::isNonRepudiation ( ) const
Returns
True if the non-repudiation bit is set, false otherwise