|
| 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 std::chrono::system_clock::time_point &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 std::chrono::system_clock::time_point | getNotAfter () const =0 |
| | Obtains the not-after validity time.
|
| virtual std::chrono::system_clock::time_point | 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.
|
This convenience class is a wrapper around a native certificate.
The interface is inspired by java.security.cert.X509Certificate.
| unsigned int IceSSL::Certificate::getExtendedKeyUsage |
( |
| ) |
const |
Returns the value of the extended key usage extension.
The flags EXTENDED_KEY_USAGE_ANY_KEY_USAGE, EXTENDED_KEY_USAGE_SERVER_AUTH, EXTENDED_KEY_USAGE_CLIENT_AUTH, EXTENDED_KEY_USAGE_CODE_SIGNING, EXTENDED_KEY_USAGE_EMAIL_PROTECTION, EXTENDED_KEY_USAGE_TIME_STAMPING and EXTENDED_KEY_USAGE_OCSP_SIGNING can be used to check what extended key usage bits are set.
| virtual std::vector< std::pair< int, std::string > > IceSSL::Certificate::getIssuerAlternativeNames |
( |
| ) |
const |
|
pure virtual |
Obtains the values in the issuer's alternative names extension.
The returned list contains a pair of int, string.
otherName [0] OtherName rfc822Name [1] IA5String dNSName [2] IA5String x400Address [3] ORAddress directoryName [4] Name ediPartyName [5] EDIPartyName uniformResourceIdentifier [6] IA5String iPAddress [7] OCTET STRING registeredID [8] OBJECT IDENTIFIER
rfc822Name, dNSName, directoryName and uniformResourceIdentifier data is returned as a string.
iPAddress is returned in dotted quad notation. IPv6 is not currently supported.
All distinguished names are encoded in RFC2253 format.
The remainder of the data will result in an empty string. Use the raw X509* certificate to obtain these values.
- Returns
- The issuer's alternative names.
| unsigned int IceSSL::Certificate::getKeyUsage |
( |
| ) |
const |
Returns the value of the key usage extension.
The flags KEY_USAGE_DIGITAL_SIGNATURE, KEY_USAGE_NON_REPUDIATION, KEY_USAGE_KEY_ENCIPHERMENT, KEY_USAGE_DATA_ENCIPHERMENT KEY_USAGE_KEY_AGREEMENT, KEY_USAGE_KEY_CERT_SIGN, KEY_USAGE_CRL_SIGN, KEY_USAGE_ENCIPHER_ONLY and KEY_USAGE_DECIPHER_ONLY can be used to check what key usage bits are set.