class Akenti::Signature

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

Inheritance:


Public Methods

[more] Signature (SignatureImpl* impl = NULL)
Contructs a Signature object given a SignatureImpl object.
[more] ~Signature ()
Decrements the reference_count and when it goes to zero destroys the object.
[more]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.
[more]static bool isSignatureAlgorithmSupported (const string& alg)
Returns true if the signature algorithm specified by alg is supported.


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) { ... }
  * 

o 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&)

o ~Signature()
Decrements the reference_count and when it goes to zero destroys the object.

See Also:
ref_ptr

ostatic 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
isSignatureAlgorithmSupported(const string&)

ostatic bool isSignatureAlgorithmSupported(const string& alg)
Returns true if the signature algorithm specified by alg is supported.

Throws:
Error if a provider has not been installed
Parameters:
- alg string name of the algorithm


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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.