StormByte-Crypto 3.1.0
C++26 cryptography module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Crypto::X509::SubjectAltName Class Reference

One supported subjectAltName entry (a DNS name or an IP address). More...

#include <StormByte/crypto/x509/certificate.hxx>

Public Member Functions

 SubjectAltName () noexcept
 Empty DNS entry with no value.
 SubjectAltName (SubjectAltNameType type, Safe::Binary value)
 Builds an entry.
 SubjectAltName (const SubjectAltName &other)
 Copy constructor.
 SubjectAltName (SubjectAltName &&other) noexcept
 Move constructor.
 ~SubjectAltName () noexcept
 Destructor.
SubjectAltName & operator= (const SubjectAltName &other)
 Copy assignment.
SubjectAltName & operator= (SubjectAltName &&other) noexcept
 Move assignment.
SubjectAltNameType Type () const noexcept
 Returns the kind of the entry.
const Safe::Binary & Value () const noexcept
 Returns the raw value.

Detailed Description

One supported subjectAltName entry (a DNS name or an IP address).

Note
Conditionally DLL-safe: the value is a Safe type and all operations are defined out of line in Crypto.

Constructor & Destructor Documentation

◆ SubjectAltName() [1/4]

StormByte::Crypto::X509::SubjectAltName::SubjectAltName ( )
noexcept

Empty DNS entry with no value.

◆ SubjectAltName() [2/4]

StormByte::Crypto::X509::SubjectAltName::SubjectAltName ( SubjectAltNameType type,
Safe::Binary value )

Builds an entry.

Parameters
typeKind of the entry.
valueRaw bytes: ASCII text for DNS, network-order address bytes for IP.

◆ SubjectAltName() [3/4]

StormByte::Crypto::X509::SubjectAltName::SubjectAltName ( const SubjectAltName & other)

Copy constructor.

Parameters
otherEntry to copy.

◆ SubjectAltName() [4/4]

StormByte::Crypto::X509::SubjectAltName::SubjectAltName ( SubjectAltName && other)
noexcept

Move constructor.

Parameters
otherEntry to move.

◆ ~SubjectAltName()

StormByte::Crypto::X509::SubjectAltName::~SubjectAltName ( )
noexcept

Destructor.

Member Function Documentation

◆ operator=() [1/2]

SubjectAltName & StormByte::Crypto::X509::SubjectAltName::operator= ( const SubjectAltName & other)

Copy assignment.

Parameters
otherEntry to copy.
Returns
Reference to this entry.

◆ operator=() [2/2]

SubjectAltName & StormByte::Crypto::X509::SubjectAltName::operator= ( SubjectAltName && other)
noexcept

Move assignment.

Parameters
otherEntry to move.
Returns
Reference to this entry.

◆ Type()

SubjectAltNameType StormByte::Crypto::X509::SubjectAltName::Type ( ) const
noexcept

Returns the kind of the entry.

Returns
DNS or IP.

◆ Value()

const Safe::Binary & StormByte::Crypto::X509::SubjectAltName::Value ( ) const
noexcept

Returns the raw value.

Returns
Certificate bytes: DNS names keep their original case and wildcard, IP addresses are 4 or 16 bytes.

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