namespace Akenti class Signature : public ref_ptr<SignatureImpl>

A Signature object is a reference-count pointer that wraps a SignatureImpl object

Inheritance:


Public Methods

Signature (SignatureImpl *impl = NULL)
Contructs a Signature object given a SignatureImpl object
~Signature ()
Decrements the reference_count and when it goes to zero destroys the object
static Signature getInstance (const string& alg)
Returns a Signature object of the type set in the security provider for the type of algorithm specified by alg

Inherited from ref_ptr:

Public Methods

ref_ptr & operator=(const ref_ptr& rhs)
T* operator->() const
operator void*() const
T* get() const

Documentation

A Signature object is a reference-count pointer that wraps a SignatureImpl object. It provides applications, albeit indirectly, with the functionality of a digital signature algorithm such as RSA-MD5 or DSA-SHA1. Digital signatures are used for authentication and integrity assurance of digital data.
Usage:
try {
Signature sig = Signature::getInstance("RSA-MD5");

sig->update("Date");
sig->update("to");
sig->update("be signed");

string signature = sig->sign();
} catch(SecurityException e) { ... }
Signature(SignatureImpl *impl = NULL)
Contructs a Signature object given a SignatureImpl object. Typically the getInstance(const string&) method is used to create an instance of this class.
Parameters:
impl - SignatureImpl wrapped object
See Also:
ref_ptr
SignatureImpl
getInstance(const string&)

~Signature()
Decrements the reference_count and when it goes to zero destroys the object.
See Also:
ref_ptr

static Signature getInstance(const string& alg)
Returns a Signature object of the type set in the security provider for the type of algorithm specified by alg.
Throws:
Error if a provider has not been installed
SecurityException if algorithm is not supported
Parameters:
alg - string name of the algorithm
See Also:
ProviderImpl


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
ref_ptr
SignatureImpl
getProvider()
getSignature(const string& alg)

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de