Base interface for all identity certificates.
More...
#include <src/main/decaf/security/cert/Certificate.h>
Base interface for all identity certificates.
virtual decaf::security::cert::Certificate::~Certificate |
( |
| ) |
|
|
inlinevirtual |
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.
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
-
virtual PublicKey* decaf::security::cert::Certificate::getPublicKey |
( |
| ) |
|
|
pure virtual |
Gets the public key of this certificate.
- Returns
- the public key
virtual const PublicKey* decaf::security::cert::Certificate::getPublicKey |
( |
| ) |
const |
|
pure virtual |
Gets the public key of this certificate.
- Returns
- the public key
virtual std::string decaf::security::cert::Certificate::getType |
( |
| ) |
const |
|
pure virtual |
Returns the type of this certificate.
- Returns
- the type of this certificate
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
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
-
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: