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

CODEX_Ciphers::Credentials Class Reference

This class is used to demonstrate access rights. More...

#include <Credentials.h>

Inheritance diagram for CODEX_Ciphers::Credentials:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Ciphers::Credentials:

Collaboration graph
[legend]
List of all members.

Public Methods

 Credentials ()
 Default constructor, for creating an object to be unmarshalled.

 Credentials (const RSAPublicKey &publicKey)
 Create Credentials from a public key.

 Credentials (const Credentials &aCred)
 Create Credentials from other Credentials.

virtual ~Credentials ()
 Virtual destructor.

void operator= (const Credentials &aCred)
 Assignment operator.

const RSAPublicKeypublicKey () const
 Public key of the client holding the credentials.

int marshal (unsigned char **pp) const
 This function creates a serialized representation of the object, which is returned through the argument pp.

void * unmarshal (void *bogus, unsigned char **pp, long length)
 This function takes a serialized representation of the object and recreates the object representation.


Detailed Description

This class is used to demonstrate access rights.

The current version of this class is empty, and will always be accepted. It is designed to provide an interface for a mechanism such as SDSI or KeyNote.

Deprecated:
The public key stored in a Credentials object can be used to verify the signature on a client message. If the signature on the public key is valid for the specified Policy on the data to be accessed, this establishes that the client is authorized to access the data.

Definition at line 38 of file Credentials.h.


Member Function Documentation

int Credentials::marshal unsigned char **    pp const [virtual]
 

This function creates a serialized representation of the object, which is returned through the argument pp.

This must be overridden by the concrete derived class.

Parameters:
pp  Serialized form of the object
Returns:
Length of the marshalled data

Implements CODEX_ASN1::Base.

Definition at line 106 of file Credentials.cc.

References CODEX_Ciphers::RSAPublicKey::marshal().

Referenced by CODEX_Client::Interface::codex_issue_credentials(), CODEX_Client::WriteKeyMsg::marshal(), and CODEX_Client::ReadKeyMsg::marshal().

void * Credentials::unmarshal void *    bogus,
unsigned char **    pp,
long    length
[virtual]
 

This function takes a serialized representation of the object and recreates the object representation.

This must be overridden by the concrete derived class.

Parameters:
bogus  Included for compatibility with OpenSSL ASN.1 macros
pp  Serialized form of the data
length  Number of bytes of pp to unmarshal
Returns:
success or failure of the unmarshalling

Implements CODEX_ASN1::Base.

Definition at line 119 of file Credentials.cc.

References CODEX_ASN1::Base::m_initialized, and CODEX_Ciphers::RSAPublicKey::unmarshal().

Referenced by CODEX_Client::Interface::codex_read_key(), CODEX_Client::Interface::codex_write_key(), CODEX_Client::WriteKeyMsg::unmarshal(), and CODEX_Client::ReadKeyMsg::unmarshal().


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:03 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18