TNL::Certificate Class Reference
#include <tnlCertificate.h>
Inheritance diagram for TNL::Certificate:
Detailed Description
The
Certificate class manages a digitally signed certificate.
Certificates consist of an application-defined payload, a public key, and a signature. It is up to the application to determine from the payload what, if any, certificate authority (CA) signed the certificate. The validate() method can be used to check the certificate's authenticity against the known public key of the signing Certificate Authority.
The payload could include such items as:
- The valid date range for the certificate
- The domain of the certificate holder
- The identifying name of the Certificate Authority
- A player's name and user id for a multiplayer game
Member Enumeration Documentation
Constructor & Destructor Documentation
TNL::Certificate::Certificate |
( |
U8 * |
dataPtr, |
|
|
U32 |
dataSize |
|
) |
[inline] |
|
TNL::Certificate::Certificate |
( |
const ByteBuffer & |
buffer |
) |
[inline] |
|
TNL::Certificate::Certificate |
( |
BitStream * |
stream |
) |
[inline] |
|
Member Function Documentation
void TNL::Certificate::parse |
( |
|
) |
|
|
|
Parses this certificate into the payload, public key, identiy, certificate authority and signature.
|
bool TNL::Certificate::isValid |
( |
|
) |
[inline] |
|
|
returns the validity of the certificate's formation
|
|
returns true if this certificate was signed by the private key corresponding to the passed public key.
|
|
Returns the public key from the certificate.
|
|
Returns the certificate payload.
|
Field Documentation
|
The public key for the holder of this certificate.
|
|
The certificate payload, including the identity of the holder and the Certificate Authority.
|
|
The digital signature of this certificate by the signatory.
|
|
flag to signify whether this certificate has a valid form
|
|
Number of bytes of the ByteBuffer signed by the CA.
|