ns3::rapidnet::PkiAuthenticationManager Class Reference
[RapidNet]

A PKI based authentication manager implementation. More...

#include <pki-authentication-manager.h>

Inheritance diagram for ns3::rapidnet::PkiAuthenticationManager:

Inheritance graph
[legend]
Collaboration diagram for ns3::rapidnet::PkiAuthenticationManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void Sign (Ptr< Tuple > tuple)
 Signs the given tuple on behalf of the principal.
bool Verify (Ptr< Tuple > tuple, Ptr< TupleAttribute > sigAttr)
 Verify that the received tuple is signed by a principal.

Static Public Member Functions

static Ptr
< SendlogAuthenticationManager
New (Ptr< RapidNetApplicationBase > principal)
 Static constructor. Creates and returns an instance of the PkiAuthenticationManager for the given principal.

Protected Member Functions

Ptr< ValueOpenSslSign (Ptr< Tuple > tuple)
 Invokes OpenSSL primitives for generating the signature and returns the.
bool OpenSslVerify (Ptr< ByteArrayValue > signature, Ptr< ByteArrayValue > bytes, string keyId)
 Invokes OpenSSL primitives for verifying the signature.

Protected Attributes

Ptr< EvpKeym_privateKey
 My private key.
EvpKeyCache m_publicKeys
 Cache of public keys of other principals.


Detailed Description

A PKI based authentication manager implementation.

Member Function Documentation

Ptr<Value> ns3::rapidnet::PkiAuthenticationManager::OpenSslSign ( Ptr< Tuple tuple  )  [protected]

Invokes OpenSSL primitives for generating the signature and returns the.

See also:
ByteArrayValue with the signature bytes.

bool ns3::rapidnet::PkiAuthenticationManager::Verify ( Ptr< Tuple tuple,
Ptr< TupleAttribute sigAttr 
) [virtual]

Verify that the received tuple is signed by a principal.

Parameters:
sigAttr The identity information of the principal who should sign the tuple is provided.

Implements ns3::rapidnet::SendlogAuthenticationManager.


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 15:01:11 2010 for NS-3 by  doxygen 1.5.8