summaryrefslogtreecommitdiff
path: root/cpp/include/IceSSL/SChannel.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceSSL/SChannel.h')
-rw-r--r--cpp/include/IceSSL/SChannel.h59
1 files changed, 33 insertions, 26 deletions
diff --git a/cpp/include/IceSSL/SChannel.h b/cpp/include/IceSSL/SChannel.h
index 9ff60700ea7..df4fff6b486 100644
--- a/cpp/include/IceSSL/SChannel.h
+++ b/cpp/include/IceSSL/SChannel.h
@@ -23,39 +23,46 @@ namespace SChannel
class Certificate;
ICE_DEFINE_PTR(CertificatePtr, Certificate);
+/**
+ * This convenience class is a wrapper around a native certificate.
+ * \headerfile IceSSL/IceSSL.h
+ */
class ICESSL_API Certificate : public virtual IceSSL::Certificate
{
public:
- //
- // Construct a certificate using a native certificate.
- //
- // The Certificate class assumes ownership of the given native
- // certificate.
- //
- static CertificatePtr create(CERT_SIGNED_CONTENT_INFO*);
+ /**
+ * Constructs a certificate using a native certificate.
+ * The Certificate class assumes ownership of the given native
+ * certificate.
+ * @param info The certificate data.
+ * @return The new certificate instance.
+ */
+ static CertificatePtr create(CERT_SIGNED_CONTENT_INFO* info);
- //
- // Load the certificate from a file. The certificate must use the
- // PEM encoding format. Raises CertificateReadException if the
- // file cannot be read.
- //
- static CertificatePtr load(const std::string&);
+ /**
+ * Loads the certificate from a file. The certificate must use the
+ * PEM encoding format.
+ * @param file The certificate file.
+ * @return The new certificate instance.
+ * @throws CertificateReadException if the file cannot be read.
+ */
+ static CertificatePtr load(const std::string& file);
- //
- // Decode a certificate from a string that uses the PEM encoding
- // format. Raises CertificateEncodingException if an error
- // occurs.
- //
- static CertificatePtr decode(const std::string&);
+ /**
+ * Decodes a certificate from a string that uses the PEM encoding format.
+ * @param str A string containing the encoded certificate.
+ * @return The new certificate instance.
+ * @throws CertificateEncodingException if an error occurs.
+ */
+ static CertificatePtr decode(const std::string& str);
- //
- // Retrieve the native X509 certificate value wrapped by this
- // object.
- //
- // The returned reference is only valid for the lifetime of this
- // object. The returned reference is a pointer to a struct.
- //
+ /**
+ * Obtains the native X509 certificate value wrapped by this object.
+ * @return A reference to the native certificate.
+ * The returned reference is only valid for the lifetime of this
+ * object. The returned reference is a pointer to a struct.
+ */
virtual CERT_SIGNED_CONTENT_INFO* getCert() const = 0;
};