Async 1.8.0
|
A class representing the X.509 Subject Alternative Name extension. More...
#include <AsyncSslX509ExtSubjectAltName.h>
Public Types | |
using | ForeachFunction = std::function<void(int, std::string)> |
Public Member Functions | |
SslX509ExtSubjectAltName (const std::string &names) | |
Default constructor. | |
SslX509ExtSubjectAltName (const X509_EXTENSION *ext) | |
Constructor. | |
SslX509ExtSubjectAltName (GENERAL_NAMES *names) | |
Constructor. | |
SslX509ExtSubjectAltName (SslX509ExtSubjectAltName &&other) | |
Move Constructor. | |
SslX509ExtSubjectAltName (const SslX509ExtSubjectAltName &)=delete | |
Disallow copy construction. | |
SslX509ExtSubjectAltName & | operator= (const SslX509ExtSubjectAltName &)=delete |
Disallow copy assignment. | |
~SslX509ExtSubjectAltName (void) | |
Destructor. | |
bool | isNull (void) const |
Check if the object is initialized. | |
operator const X509_EXTENSION * () const | |
Cast to X509_EXTENSION pointer. | |
void | forEach (ForeachFunction f, int type=-1) const |
Loop through all names calling the given function for each one. | |
std::string | toString (int type=-1) const |
Convert all SANs to a string. | |
A class representing the X.509 Subject Alternative Name extension.
Definition at line 115 of file AsyncSslX509ExtSubjectAltName.h.
using Async::SslX509ExtSubjectAltName::ForeachFunction = std::function<void(int, std::string)> |
Definition at line 118 of file AsyncSslX509ExtSubjectAltName.h.
|
inlineexplicit |
Default constructor.
Constructor
names | A string of comma separated names |
Names are specified on a tag:value format. For example: DNS:example.org, IP:1.2.3.4, email:user@.nosp@m.exam.nosp@m.ple.o.nosp@m.rg
Definition at line 132 of file AsyncSslX509ExtSubjectAltName.h.
|
inline |
Constructor.
ext | An existing X509_EXTENSION object |
Definition at line 142 of file AsyncSslX509ExtSubjectAltName.h.
|
inlineexplicit |
Constructor.
names | A pointer to an existing GENERAL_NAMES object |
Definition at line 155 of file AsyncSslX509ExtSubjectAltName.h.
|
inline |
Move Constructor.
other | The object to move from |
Definition at line 165 of file AsyncSslX509ExtSubjectAltName.h.
|
delete |
Disallow copy construction.
|
inline |
Destructor.
Definition at line 185 of file AsyncSslX509ExtSubjectAltName.h.
|
inline |
Loop through all names calling the given function for each one.
f | The function to call for each name |
type | The name type to call the function for (default: all) |
Type can be GEN_DNS, GEN_IPADD or GEN_EMAIL. Other types are ignored.
Definition at line 230 of file AsyncSslX509ExtSubjectAltName.h.
References Async::IpAddress::toString().
Referenced by toString().
|
inline |
Check if the object is initialized.
Definition at line 198 of file AsyncSslX509ExtSubjectAltName.h.
|
inline |
Cast to X509_EXTENSION pointer.
Definition at line 221 of file AsyncSslX509ExtSubjectAltName.h.
|
delete |
Disallow copy assignment.
|
inline |
Convert all SANs to a string.
type | The name type consider (default: all) |
Type can be GEN_DNS, GEN_IPADD or GEN_EMAIL.
Definition at line 308 of file AsyncSslX509ExtSubjectAltName.h.
References forEach().
Referenced by Async::SslCertSigningReq::print(), and Async::SslX509::print().