Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

XSECKeyInfoResolverDefault Class Reference
[Main Signature API]

A basic class for mapping KeyInfo elements to Keys. More...

#include <XSECKeyInfoResolverDefault.hpp>

Inheritance diagram for XSECKeyInfoResolverDefault:

Inheritance graph
[legend]
Collaboration diagram for XSECKeyInfoResolverDefault:

Collaboration graph
[legend]
List of all members.

Public Methods

Constructors and Destructors
 XSECKeyInfoResolverDefault ()
virtual ~XSECKeyInfoResolverDefault ()
Interface Functions
virtual XSECCryptoKeyresolveKey (DSIGKeyInfoList *lst)
 Provide a key to the library. More...

virtual XSECKeyInfoResolverclone (void)
 Clone the resolver to be installed in a new object. More...


Detailed Description

A basic class for mapping KeyInfo elements to Keys.

This class is provides a method for applications to extract keys from KeyInfo elements that have a public key embedded.

The class makes use of the makeKey() method available in all keyInfo elements. (Which in turn relies on the clone*Key methods available from the Encryption provider - these may not be available, so this class may not work well in these cases.)

Note:
This class is very basic. It does not validate the trustworthyness of the key in any way. It simply reads the key from the first KeyInfo element that actually holds it and returns the result (or NULL) if none is found.


Constructor & Destructor Documentation

XSECKeyInfoResolverDefault::XSECKeyInfoResolverDefault   [inline]
 

virtual XSECKeyInfoResolverDefault::~XSECKeyInfoResolverDefault   [inline, virtual]
 


Member Function Documentation

virtual XSECKeyInfoResolver* XSECKeyInfoResolverDefault::clone void    [virtual]
 

Clone the resolver to be installed in a new object.

See also:
XSECKeyInfoResolver::clone()

Implements XSECKeyInfoResolver.

virtual XSECCryptoKey* XSECKeyInfoResolverDefault::resolveKey DSIGKeyInfoList   lst [virtual]
 

Provide a key to the library.

Reads through the KeyInfo elements until it finds an element with an embedded Key. If none is found, returns NULL.

Parameters:
lst  The list of KeyInfo elements from the signature
Returns:
Either the appropriate key or NULL if none can be found
See also:
XSECKeyInfoResolver::resolveKey()

Implements XSECKeyInfoResolver.


The documentation for this class was generated from the following file:
Generated on Sat Jan 11 20:35:30 2003 for XML-Security-C by doxygen1.2.15