represents an X509 certificate, reference-counted, dynamically-allocated only
More...
#include <QoreSSLCertificate.h>
|
DLLEXPORT | QoreSSLCertificate (const BinaryNode *bin, ExceptionSink *xsink) |
| creates the object from a pointer to a BinaryNode object (certificate data in DER format)
|
|
DLLLOCAL | QoreSSLCertificate (const char *fn, ExceptionSink *xsink) |
| creates the object from a filename
|
|
DLLEXPORT | QoreSSLCertificate (const QoreString *str, ExceptionSink *xsink) |
| create the object from a pointer to a QoreString representing the X.509 certificate in PEM format
|
|
DLLEXPORT | QoreSSLCertificate (X509 *c) |
| creates the object from a pointer to an X509 data structure, the QoreSSLCertificate object takes ownership of the X509 pointer
|
|
DLLEXPORT BinaryNode * | getDER (ExceptionSink *xsink) const |
| returns a binary in DER format representing the certificate, caller owns the BinaryNode reference count returned
|
|
DLLEXPORT QoreStringNode * | getPEM (ExceptionSink *xsink) const |
| returns a string in PEM format representing the certificate; caller owns the QoreStringNode reference returned
|
|
DLLEXPORT | operator bool () const |
| returns true if the object is valid, false if not
|
|
virtual DLLLOCAL void | deref () |
| decrements the reference count of the object without the possibility of throwing a Qore-language exception
|
|
virtual DLLLOCAL void | deref (ExceptionSink *xsink) |
| decrements the reference count of the object
|
|
DLLLOCAL void | ref () const |
| increments the reference count of the object
|
|
DLLEXPORT | QoreReferenceCounter () |
| Creates the reference counter object.
|
|
DLLEXPORT | QoreReferenceCounter (const QoreReferenceCounter &old) |
| Creates a new object with a reference count of 1.
|
|
DLLEXPORT | ~QoreReferenceCounter () |
| destroys the reference counter object
|
|
DLLEXPORT bool | is_unique () const |
| Returns true if the reference count is 1.
|
|
DLLEXPORT bool | optRef () |
| Make a strong reference only if the object is valid.
|
|
DLLEXPORT int | reference_count () const |
| Gets the reference count.
|
|
DLLEXPORT bool | ROdereference () const |
| Atomically decrements the reference count.
|
|
DLLEXPORT void | ROreference () const |
| Atomically increments the reference count.
|
|
|
virtual DLLLOCAL | ~QoreSSLCertificate () |
| the destructor is protected to ensure that it's only dynamically allocated (use deref() to delete)
|
|
virtual DLLLOCAL | ~AbstractPrivateData () |
| as these objects are reference counted, the destructor should be called only when the reference count = 0 and not manually
|
|
represents an X509 certificate, reference-counted, dynamically-allocated only
◆ QoreSSLCertificate() [1/4]
DLLEXPORT QoreSSLCertificate::QoreSSLCertificate |
( |
X509 * |
c | ) |
|
creates the object from a pointer to an X509 data structure, the QoreSSLCertificate object takes ownership of the X509 pointer
- Parameters
-
c | a pointer to an X509 data structure, the QoreSSLCertificate object takes ownership of the X509 pointer |
◆ QoreSSLCertificate() [2/4]
creates the object from a pointer to a BinaryNode object (certificate data in DER format)
- Parameters
-
bin | a pointer to a BinaryNode object with the raw binary certificate information |
xsink | Qore-language exceptions are raised here in case of errors |
◆ QoreSSLCertificate() [3/4]
create the object from a pointer to a QoreString representing the X.509 certificate in PEM format
- Parameters
-
str | a pointer to a QoreString with the certificatge in PEM format |
xsink | Qore-language exceptions are raised here in case of errors |
◆ QoreSSLCertificate() [4/4]
DLLLOCAL QoreSSLCertificate::QoreSSLCertificate |
( |
const char * |
fn, |
|
|
ExceptionSink * |
xsink |
|
) |
| |
creates the object from a filename
- Parameters
-
fn | the filename of the certificate file in PEM format |
xsink | Qore-language exceptions are raised here in case of errors |
◆ getDER()
returns a binary in DER format representing the certificate, caller owns the BinaryNode reference count returned
- Returns
- a binary in DER format representing the certificate, caller owns the BinaryNode reference count returned
- Since
- Qore 0.9
◆ getPEM()
returns a string in PEM format representing the certificate; caller owns the QoreStringNode reference returned
- Returns
- a string in PEM format representing the certificate; caller owns the QoreStringNode reference returned
The documentation for this class was generated from the following file: