#include <certificate.h>
Inheritance diagram for openikev2::Certificate:

Public Member Functions | |
| virtual auto_ptr< ByteArray > | signData (ByteArray &data)=0 |
| Signs data using the internal private key (if available). | |
| virtual bool | verifyData (ByteArray &data, ByteArray &signature)=0 |
| Verifies the signature of the data using the public key. | |
| virtual Enums::AUTH_METHOD | getAuthMethod ()=0 |
| Return the AUTH:METHOD that must be included in the Payload_AUTH when this certificate is used to generate the signature (Usually RSA or DSS). | |
| virtual auto_ptr< Certificate > | clone ()=0 |
| Clones the certificate. | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer)=0 |
| Appends the binary representation of the certificate in the ByteStrean. | |
| virtual string | toStringTab (uint8_t tabs) const =0 |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
Public Attributes | |
| Enums::CERT_ENCODING | encoding |
| Certificate encoding. | |
Protected Member Functions | |
| Certificate (Enums::CERT_ENCODING encoding) | |
| Creates a new Certificate setting its encoding. | |
Usually, the certificate object holds the public and the private key for an identity.
| openikev2::Certificate::Certificate | ( | Enums::CERT_ENCODING | encoding | ) | [protected] |
Signs data using the internal private key (if available).
| data | Data to be signed |
| virtual bool openikev2::Certificate::verifyData | ( | ByteArray & | data, | |
| ByteArray & | signature | |||
| ) | [pure virtual] |
Verifies the signature of the data using the public key.
| data | Signed data | |
| signature | Signature of the data to be verified |
| virtual Enums::AUTH_METHOD openikev2::Certificate::getAuthMethod | ( | ) | [pure virtual] |
Return the AUTH:METHOD that must be included in the Payload_AUTH when this certificate is used to generate the signature (Usually RSA or DSS).
| virtual auto_ptr<Certificate> openikev2::Certificate::clone | ( | ) | [pure virtual] |
Clones the certificate.
| virtual void openikev2::Certificate::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | [pure virtual] |
Appends the binary representation of the certificate in the ByteStrean.
| byte_buffer | ByteBuffer to append the binary representation |
| virtual string openikev2::Certificate::toStringTab | ( | uint8_t | tabs | ) | const [pure virtual] |
Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
| tabs | Num of tabs preceding the textual representation. |
Implements openikev2::Printable.
1.5.1