DWFToolkit::DWFSignature::SignatureMethod Class Reference

#include "dwf/package/Signature.h"

Inheritance diagram for DWFToolkit::DWFSignature::SignatureMethod:

Inheritance graph
[legend]
List of all members.

Detailed Description

a SignatureMethod ...

Since:
7.3.0
A SignatureMethod ...

Definition at line 612 of file Signature.h.

Public Member Functions

_DWFTK_API SignatureMethod () throw ()
virtual _DWFTK_API ~SignatureMethod () throw ()
virtual _DWFTK_API const wchar_t * algorithmName () const =0 throw ()
virtual _DWFTK_API DWFAsymmetricAlgorithm * algorithm () throw ()
virtual _DWFTK_API void signDigest (const DigestValue *pDigestValue, const DigestMethod *pDigestMethod, DWFCryptoKey *pPrivateKey, SignatureValue *pSignatureValue) throw (DWFException)
virtual _DWFTK_API bool verifyDigest (const DigestValue *pDigestValue, const DigestMethod *pDigestMethod, DWFCryptoKey *pPublicKey, const SignatureValue *pSignatureValue) throw (DWFException)

Protected Member Functions

virtual _DWFTK_API DWFAsymmetricAlgorithm * createAlgorithm ()=0 throw ()


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFSignature::SignatureMethod::SignatureMethod  )  throw ()
 

Constructor

Exceptions:
None 

virtual _DWFTK_API DWFToolkit::DWFSignature::SignatureMethod::~SignatureMethod  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

virtual _DWFTK_API DWFAsymmetricAlgorithm* DWFToolkit::DWFSignature::SignatureMethod::algorithm  )  throw () [virtual]
 

Returns the DWFAsymmetricAlgorithm used by this signature method.

Returns:
A pointer to the DWFAsymmetricAlgorithm used by this signature method.
Exceptions:
None 

virtual _DWFTK_API const wchar_t* DWFToolkit::DWFSignature::SignatureMethod::algorithmName  )  const throw () [pure virtual]
 

The public name of the algorithm used by this signature method.

Returns:
The algorithm name.
Exceptions:
None 

Implemented in DWFToolkit::DWFSignature::SignatureMethodDSA, and DWFToolkit::DWFSignature::SignatureMethodRSA.

virtual _DWFTK_API DWFAsymmetricAlgorithm* DWFToolkit::DWFSignature::SignatureMethod::createAlgorithm  )  throw () [protected, pure virtual]
 

Create the asymmetric algorithm used for the signature. This has to be implemented by the derived classes of signature method.

Returns:
A pointer to the asymmetric algorithm. DWFSignatureMethod will take ownership and free the object when it is destroyed.
Exceptions:
None 

Implemented in DWFToolkit::DWFSignature::SignatureMethodDSA, and DWFToolkit::DWFSignature::SignatureMethodRSA.

virtual _DWFTK_API void DWFToolkit::DWFSignature::SignatureMethod::signDigest const DigestValue pDigestValue,
const DigestMethod pDigestMethod,
DWFCryptoKey *  pPrivateKey,
SignatureValue pSignatureValue
throw (DWFException) [virtual]
 

Signs a digest value using a supplied key.

Parameters:
pDigestValue The digest to be signed.
pDigestMethod The method that was used to produce the given digest.
pPrivateKey The private key to be used to sign the given digest.
pSignatureValue A pointer to a SignatureValue into which the signed digest will be stored.
Exceptions:
None 

virtual _DWFTK_API bool DWFToolkit::DWFSignature::SignatureMethod::verifyDigest const DigestValue pDigestValue,
const DigestMethod pDigestMethod,
DWFCryptoKey *  pPublicKey,
const SignatureValue pSignatureValue
throw (DWFException) [virtual]
 

Verifies a signature value against a current digest.

Parameters:
pDigestValue The current digest.
pDigestMethod The method that was used to produce the given digest.
pPublicKey The public key to be used to decrypt the given signature.
pSignatureValue A pointer to the SignatureValue to be verified.
Exceptions:
None 


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:40:34 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5