Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XSECKeyInfoResolverDefault Class Reference
[Classes that interface applications to XML Security C.]

#include <XSECKeyInfoResolverDefault.hpp>

Inheritance diagram for XSECKeyInfoResolverDefault:

Inheritance graph
[legend]
Collaboration diagram for XSECKeyInfoResolverDefault:

Collaboration graph
[legend]
List of all members.

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. It is mainly provided to allow for interoperability testing.


Public Member Functions

Constructors and Destructors
 XSECKeyInfoResolverDefault ()
virtual ~XSECKeyInfoResolverDefault ()
Interface Functions
virtual XSECCryptoKeyresolveKey (DSIGKeyInfoList *lst)
 Provide a key to the library.
virtual XSECKeyInfoResolverclone (void) const
 Clone the resolver to be installed in a new object.


Constructor & Destructor Documentation

XSECKeyInfoResolverDefault::XSECKeyInfoResolverDefault  ) 
 

virtual XSECKeyInfoResolverDefault::~XSECKeyInfoResolverDefault  )  [virtual]
 


Member Function Documentation

virtual XSECKeyInfoResolver* XSECKeyInfoResolverDefault::clone void   )  const [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 Sun Jul 3 17:45:44 2005 for XML-Security-C by  doxygen 1.4.2