Base interface for all identity certificates.
More...
#include <src/main/decaf/security/cert/Certificate.h>
|
virtual | ~Certificate () |
|
virtual bool | equals (const Certificate &cert) const =0 |
| Compares the encoded form of the two certificates.
|
|
virtual void | getEncoded (std::vector< unsigned char > &output) const =0 |
| Provides the encoded form of this certificate.
|
|
virtual std::string | getType () const =0 |
| Returns the type of this certificate.
|
|
virtual PublicKey * | getPublicKey ()=0 |
| Gets the public key of this certificate.
|
|
virtual const PublicKey * | getPublicKey () const =0 |
| Gets the public key of this certificate.
|
|
virtual void | verify (const PublicKey &publicKey) const =0 |
| Verifies that this certificate was signed with the private key that corresponds to the specified public key.
|
|
virtual void | verify (const PublicKey &publicKey, const std::string &sigProvider) const =0 |
| Verifies that this certificate was signed with the private key that corresponds to the specified public key.
|
|
virtual std::string | toString () const =0 |
| Returns a string representation of this certificate.
|
|
Base interface for all identity certificates.
◆ ~Certificate()
virtual decaf::security::cert::Certificate::~Certificate |
( |
| ) |
|
|
inlinevirtual |
◆ equals()
virtual bool decaf::security::cert::Certificate::equals |
( |
const Certificate & | cert | ) |
const |
|
pure virtual |
Compares the encoded form of the two certificates.
- Parameters
-
cert | The certificate to be tested for equality with this certificate. |
- Returns
- true if the given certificate is equal to this certificate.
◆ getEncoded()
virtual void decaf::security::cert::Certificate::getEncoded |
( |
std::vector< unsigned char > & | output | ) |
const |
|
pure virtual |
Provides the encoded form of this certificate.
- Parameters
-
output | Receives the encoded form of this certificate. |
- Exceptions
-
◆ getPublicKey() [1/2]
virtual const PublicKey * decaf::security::cert::Certificate::getPublicKey |
( |
| ) |
const |
|
pure virtual |
Gets the public key of this certificate.
- Returns
- the public key
◆ getPublicKey() [2/2]
virtual PublicKey * decaf::security::cert::Certificate::getPublicKey |
( |
| ) |
|
|
pure virtual |
Gets the public key of this certificate.
- Returns
- the public key
◆ getType()
virtual std::string decaf::security::cert::Certificate::getType |
( |
| ) |
const |
|
pure virtual |
Returns the type of this certificate.
- Returns
- the type of this certificate
◆ toString()
virtual std::string decaf::security::cert::Certificate::toString |
( |
| ) |
const |
|
pure virtual |
Returns a string representation of this certificate.
- Returns
- a string representation of this certificate
◆ verify() [1/2]
virtual void decaf::security::cert::Certificate::verify |
( |
const PublicKey & | publicKey | ) |
const |
|
pure virtual |
Verifies that this certificate was signed with the private key that corresponds to the specified public key.
- Parameters
-
publicKey | The public key used to carry out the validation. |
- Exceptions
-
◆ verify() [2/2]
virtual void decaf::security::cert::Certificate::verify |
( |
const PublicKey & | publicKey, |
|
|
const std::string & | sigProvider ) const |
|
pure virtual |
Verifies that this certificate was signed with the private key that corresponds to the specified public key.
Uses the verification engine of the specified provider.
- Parameters
-
publicKey | The public key used to carry out the validation. |
sigProvider | The name of the signature provider |
- Exceptions
-
The documentation for this class was generated from the following file: