Poco::Net

class X509Certificate

Library: NetSSL_OpenSSL
Package: SSLCore
Header: Poco/Net/X509Certificate.h

Description

This class represents an X509 Certificate.

Member Summary

Member Functions: certificate, issuerName, operator =, subjectName, swap, verify

Constructors

X509Certificate

X509Certificate(
    std::istream & str
);

Loads the X509Certificate from the stream

X509Certificate

X509Certificate(
    const std::string & file
);

Loads the X509Certificate from the file

X509Certificate

X509Certificate(
    X509 * pCert
);

Creates the X509Certificate.

X509Certificate

X509Certificate(
    const X509Certificate & param246
);

Destructor

~X509Certificate

~X509Certificate();

Destroys the X509Certificate.

Member Functions

certificate inline

const X509 * certificate() const;

Returns the OpenSSL certificate.

issuerName inline

const std::string & issuerName() const;

Returns the certificate issuer name.

operator =

X509Certificate & operator = (
    const X509Certificate & param247
);

subjectName inline

const std::string & subjectName() const;

Returns the certificate subject name.

swap

void swap(
    X509Certificate & cert
);

verify

bool verify(
    const std::string & hostName,
    Poco::SharedPtr < Context > ptr
);

Verifies the validity of the certificate against the hostname