Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_Ciphers::PolCredBase Class Reference

This is the base class for access policies and credentials. More...

#include <PolCredBase.h>

Inheritance diagram for CODEX_Ciphers::PolCredBase:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PolCredBase ()
 Default constructor, for creating an object to be unmarshalled.
 PolCredBase (const RSAPublicKey &publicKey, const RSASignature &signature)
 Create PolCredBase from a public key and a signature.
 PolCredBase (const RSAPublicKey &publicKey, const RSAPrivateKey &signingKey, const HashFunction &hashFunc)
 Create PolCredBase from public and private keys and a hash function.
 PolCredBase (const PolCredBase &aCred)
 Create a PolCredBase from another PolCredBase.
virtual ~PolCredBase ()
 Virtual destructor.
void operator= (const PolCredBase &aCred)
 Assignment operator.
const RSAPublicKeypublicKey () const
 The public key.
const RSASignaturesignature () const
 Signature indicating delegated rights.
bool verify (const RSAPublicKey &delegator, const HashFunction &hashFunc) const
 Verify against a known public key.
int marshal (unsigned char **pp) const
 Serialize the object.
void * unmarshal (void *bogus, unsigned char **pp, long length)
 Unserialize the object.
bool initialized () const

Protected Attributes

bool m_initialized
 Has this object been initialized yet, or is it still blank?

Detailed Description

This is the base class for access policies and credentials.

Delegated rights are specified by a public key, which is signed by an object already possessing those rights.

Definition at line 34 of file PolCredBase.h.


Constructor & Destructor Documentation

PolCredBase::PolCredBase const RSAPublicKey publicKey,
const RSAPrivateKey signingKey,
const HashFunction hashFunc
 

Create PolCredBase from public and private keys and a hash function.

Parameters:
publicKey The public key receiving delegated rights.
signingKey The private key used to delegate the rights.
hashFunc The function used to create a digest of publicKey.
Exceptions:
BignumNullException An error occurred allocating a new BIGNUM.
BignumBin2BNException An error occurred translating a character array to a BIGNUM.

Definition at line 37 of file PolCredBase.cc.

References signature().


Member Function Documentation

bool CODEX_ASN1::Base::initialized  )  const [inline, inherited]
 

Returns:
Has this object been initialized?

Definition at line 175 of file Base.h.

References CODEX_ASN1::Base::m_initialized.

Referenced by CODEX_APSS::SecretManagement::addComputeMsg(), CODEX_APSS::SecretManagement::addEstablishMsg(), CODEX_APSS::SecretManagement::addEstablishResponse(), CODEX_APSS::SecretManagement::addInitMsg(), CODEX_APSS::SecretManagement::addSharing(), CODEX_APSS::SecretManagement::addSubsharing(), CODEX_VSS::Combinatoric< NumT, ThreshT >::apply(), CODEX_Server::ServerState::caKey(), CODEX_KeyService::ClientCreateCallback::ClientCreateCallback(), CODEX_VSS::Combinatoric< NumT, ThreshT >::count(), CODEX_Server::QuorumBuilderAct::handler(), CODEX_APSS::MessageVerifier::handler(), CODEX_KeyService::DelegateResponseVerifier::handler(), CODEX_KeyService::DelegateRequestDistributor::handler(), CODEX_KeyService::ClientMessageVerifier::handler(), CODEX_KeyService::ClientMessageSigner::handler(), CODEX_VSS::SubshareLabel< LabelType >::marshal(), CODEX_KeyService::KeyInfo::marshal(), CODEX_VSS::LabeledShare< ShareType, OneWay >::marshal(), CODEX_VSS::ShareLabel< _ShareType, _OneWay >::marshal(), CODEX_VSS::ModExpFunctionalArgs::marshal(), CODEX_VSS::Combinatoric< NumT, ThreshT >::marshal(), CODEX_KeyService::SignWriteCallback::operator()(), CODEX_KeyService::SignReadCallback::operator()(), CODEX_KeyService::SignCreateCallback::operator()(), CODEX_VSS::ModExpFunctional::operator()(), CODEX_KeyService::ClientReadCallback::operator()(), CODEX_KeyService::ClientCreateCallback::operator()(), CODEX_VSS::Combinatoric< NumT, ThreshT >::operator+=(), CODEX_Server::ServerState::readElGamalShares(), CODEX_VSS::Combinatoric< NumT, ThreshT >::recover(), CODEX_APSS::SecretManagement::sendFinished(), CODEX_Server::ServerState::serviceKey(), CODEX_Server::ServerState::setEGShareCallback(), and CODEX_Server::ServerState::setRSAShareCallback().

bool PolCredBase::verify const RSAPublicKey delegator,
const HashFunction hashFunc
const
 

Verify against a known public key.

Parameters:
delegator The public key of the rights granter.
hashFunc The hash function used to make a digest of the public key.
Returns:
Success or failure of signature verification.

Definition at line 80 of file PolCredBase.cc.


The documentation for this class was generated from the following files:
Generated on Fri May 6 17:41:52 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1