folly::OpenSSLTransportCertificate

Generic interface applications may implement to convey self or peer certificate related information.

Synopsis

Declared in <folly/io/async/ssl/OpenSSLTransportCertificate.h>

class OpenSSLTransportCertificate
    : public virtual AsyncTransportCertificate

Base Classes

NameDescription
AsyncTransportCertificateGeneric interface applications may implement to convey self or peer certificate related information.

Member Functions

NameDescription
~OpenSSLTransportCertificate [destructor] [virtual]Destroys the certificate.
asOpenSSLTransportCertificate [virtual]Returns this object as an OpenSSL transport certificate.
getDER [virtual]Returns the DER encoding of the certificate, if available.
getIdentity [virtual]Returns the identity this certificate conveys.
getX509 [virtual]Returns the X509 structure associated with this certificate.

Static Member Functions

NameDescription
tryExtractX509 Extracts an X509 from cert if it is an OpenSSL transport certificate.

Derived Classes

NameDescription
BasicTransportCertificate In-memory transport certificate holding an identity and an optional X509.