PcapPlusPlus  Next
pcpp::X509ExtendedKeyUsagePurpose Class Reference

#include <X509ExtensionDataDecoder.h>

Public Types

enum  Value : uint8_t {
  ServerAuth , ClientAuth , CodeSigning , EmailProtection ,
  TimeStamping , OCSPSigning , IPSecEndSystem , IPSecTunnel ,
  IPSecUser , AnyExtendedKeyUsage , SmartCardLogon , EncryptedFileSystem ,
  DocumentSigning , Unknown
}
 Define enum types for extended key usage purposes. More...
 

Public Member Functions

std::string toString () const
 
std::string getOidValue () const
 

Static Public Member Functions

static X509ExtendedKeyUsagePurpose fromOidValue (const Asn1ObjectIdentifier &value)
 

Detailed Description

Represents an extended key usage purpose

Member Enumeration Documentation

◆ Value

Define enum types for extended key usage purposes.

Enumerator
ServerAuth 

Server authentication.

ClientAuth 

Client authentication.

CodeSigning 

Code signing.

EmailProtection 

Email protection.

TimeStamping 

Time stamping.

OCSPSigning 

OCSP signing.

IPSecEndSystem 

IPsec end system.

IPSecTunnel 

IPsec tunnel.

IPSecUser 

IPsec user.

SmartCardLogon 

Smart card logon.

EncryptedFileSystem 

Encrypted file system.

DocumentSigning 

Document signing.

Unknown 

Unknown purpose value.

Member Function Documentation

◆ fromOidValue()

static X509ExtendedKeyUsagePurpose pcpp::X509ExtendedKeyUsagePurpose::fromOidValue ( const Asn1ObjectIdentifier value)
static

Creates an X509ExtendedKeyUsagePurpose from an OID value

Parameters
[in]valueThe ASN.1 object identifier
Returns
The corresponding X509ExtendedKeyUsagePurpose value, or Unknown if no match is found

◆ getOidValue()

std::string pcpp::X509ExtendedKeyUsagePurpose::getOidValue ( ) const
Returns
The OID value of the purpose type

◆ toString()

std::string pcpp::X509ExtendedKeyUsagePurpose::toString ( ) const
Returns
A string representation of the purpose type