Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

TNL::Certificate Class Reference

The Certificate class manages a digitally signed certificate. More...

#include <tnlCertificate.h>

List of all members.

Public Methods

 Certificate (U8 *dataPtr, U32 dataSize)
 Certificate constructor.

void parse ()
 Parses this certificate into the payload, public key, identiy, certificate authority and signature.

bool isValid ()
 returns the validity of the certificate's formation

bool validate (RefPtr< AsymmetricKey > signatoryPublicKey)
 returns true if this certificate was signed by the private key corresponding to the passed public key.

RefPtr< AsymmetricKey > getPublicKey ()
 Returns the public key from the certificate.

ByteBufferPtr getPayload ()
 Returns the certificate payload.


Protected Attributes

RefPtr< AsymmetricKey > mPublicKey
 The public key for the holder of this certificate.

ByteBufferPtr mPayload
 The certificate payload, including the identity of the holder and the Certificate Authority.

ByteBufferPtr mSignature
 The digital signature of this certificate by the signatory.

bool mIsValid
 flag to signify whether this certificate has a valid form

U32 mSignatureByteSize
 Number of bytes of the ByteBuffer signed by the CA.


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:

Definition at line 56 of file tnlCertificate.h.


The documentation for this class was generated from the following files:
Generated on Thu Aug 18 16:03:37 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18