class io.SslCertificate

class SslCertificate {
    // properties

    string_t const property m_serialNumber;
    uint64_t const property m_validFromDate;
    uint64_t const property m_validToDate;
    io.SslCertName const* const property m_subject;
    io.SslCertName const* const property m_issuer;

    // construction

    construct();
    destruct();

    // methods

    bool errorcode encode(
        std.Buffer* buffer,
        io.SslCertFormat format = SslCertFormat.Pem
    ) const;

    string_t errorcode encode() const;

    bool errorcode decode(
        void const* p,
        size_t size,
        io.SslCertFormat format = SslCertFormat.Pem
    );

    bool errorcode decode(string_t p);

    bool errorcode load(
        string_t fileName,
        io.SslCertFormat format = SslCertFormat.Pem
    );

    bool errorcode save(
        string_t fileName,
        io.SslCertFormat format = SslCertFormat.Pem
    ) const;
};