|
Ice 3.7 C++98 API Reference
|
Encapsulates an OpenSSL X.509 certificate. More...
#include <IceSSL/IceSSL.h>


Public Member Functions | |
| virtual x509_st * | getCert () const =0 |
| Retrieve the native X509 certificate value wrapped by this object. | |
| Public Member Functions inherited from IceSSL::Certificate | |
| virtual bool | checkValidity () const =0 |
| Checks that the certificate is currently valid, that is, the current date falls between the validity period given in the certificate. | |
| virtual bool | checkValidity (const IceUtil::Time &t) const =0 |
| Checks that the certificate is valid at the given time. | |
| virtual std::string | encode () const =0 |
| Obtains a string encoding of the certificate in PEM format. | |
| virtual std::vector< Ice::Byte > | getAuthorityKeyIdentifier () const =0 |
| Obtains the authority key identifier. | |
| unsigned int | getExtendedKeyUsage () const |
| Returns the value of the extended key usage extension. | |
| virtual std::vector< std::pair< int, std::string > > | getIssuerAlternativeNames () const =0 |
| Obtains the values in the issuer's alternative names extension. | |
| virtual DistinguishedName | getIssuerDN () const =0 |
| Obtains the issuer's distinguished name (DN). | |
| unsigned int | getKeyUsage () const |
| Returns the value of the key usage extension. | |
| virtual IceUtil::Time | getNotAfter () const =0 |
| Obtains the not-after validity time. | |
| virtual IceUtil::Time | getNotBefore () const =0 |
| Obtains the not-before validity time. | |
| virtual std::string | getSerialNumber () const =0 |
| Obtains the serial number. | |
| virtual std::vector< std::pair< int, std::string > > | getSubjectAlternativeNames () const =0 |
| See the comment for Plugin::getIssuerAlternativeNames. | |
| virtual DistinguishedName | getSubjectDN () const =0 |
| Obtains the subject's distinguished name (DN). | |
| virtual std::vector< Ice::Byte > | getSubjectKeyIdentifier () const =0 |
| Obtains the subject key identifier. | |
| virtual int | getVersion () const =0 |
| Obtains the certificate version number. | |
| virtual X509ExtensionPtr | getX509Extension (const std::string &oid) const =0 |
| Obtains the extension with the given OID. | |
| virtual std::vector< X509ExtensionPtr > | getX509Extensions () const =0 |
| Obtains a list of the X509v3 extensions contained in the certificate. | |
| virtual bool | operator!= (const Certificate &) const =0 |
| Compares the certificates for equality using the native certificate comparison method. | |
| virtual bool | operator== (const Certificate &) const =0 |
| Compares the certificates for equality using the native certificate comparison method. | |
| virtual std::string | toString () const =0 |
| Stringifies the certificate. | |
| virtual bool | verify (const CertificatePtr &cert) const =0 |
| Verifies that this certificate was signed by the given certificate public key. | |
| Public Member Functions inherited from IceUtil::Shared | |
| void | __clearFlag (unsigned char flag) |
| virtual void | __decRef () |
| virtual int | __getRef () const |
| bool | __hasFlag (unsigned char flag) |
| virtual void | __incRef () |
| void | __setFlag (unsigned char flag) |
| virtual void | __setNoDelete (bool) |
| Shared & | operator= (const Shared &) |
| Shared () | |
| Shared (const Shared &) | |
| virtual | ~Shared () |
Static Public Member Functions | |
| static CertificatePtr | create (x509_st *cert) |
| Construct a certificate using a native certificate. | |
| static CertificatePtr | decode (const std::string &cert) |
| Decode a certificate from a string that uses the PEM encoding format. | |
| static CertificatePtr | load (const std::string &file) |
| Load the certificate from a file. | |
| Static Public Member Functions inherited from IceSSL::Certificate | |
| static CertificatePtr | decode (const std::string &str) |
| Decodes a certificate from a string that uses the PEM encoding format. | |
| static CertificatePtr | load (const std::string &file) |
| Loads the certificate from a file. | |
Additional Inherited Members | |
| Static Public Attributes inherited from IceUtil::Shared | |
| static const unsigned char | NoDelete |
| Protected Attributes inherited from IceUtil::Shared | |
| unsigned char | _flags |
| IceUtilInternal::Atomic | _ref |
Encapsulates an OpenSSL X.509 certificate.
|
static |
Construct a certificate using a native certificate.
The Certificate class assumes ownership of the given native certificate.
| cert | The native certificate. |
|
static |
Decode a certificate from a string that uses the PEM encoding format.
| cert | A string containing the PEM-encoded certificate. |
| CertificateEncodingException | if an error occurs. |
|
pure virtual |
Retrieve the native X509 certificate value wrapped by this object.
|
static |
Load the certificate from a file.
The certificate must use the PEM encoding format.
| file | The certificate file. |
| CertificateReadException | if the file cannot be read. |