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

XSECKeyInfoResolver Class Reference
[Main Signature API]

Interface class for providing keys to the library. More...

#include <XSECKeyInfoResolver.hpp>

Inheritance diagram for XSECKeyInfoResolver:

Inheritance graph
[legend]
List of all members.

Public Methods

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

virtual XSECKeyInfoResolver * clone (void)=0
 Clone the resolver to be installed in a new object. More...


Detailed Description

Interface class for providing keys to the library.

The XSEC library does not perform actual mapping of KeyInfo elements to encryption keys. (In some cases a KeyInfo might not even be provided).

This interface class allows the application to perform this key mapping and provision function. Applications can perform whatever steps are necessary to determine the appropriate key and what trust level it might have.


Constructor & Destructor Documentation

XSECKeyInfoResolver::XSECKeyInfoResolver   [inline]
 

virtual XSECKeyInfoResolver::~XSECKeyInfoResolver   [inline, virtual]
 


Member Function Documentation

virtual XSECKeyInfoResolver* XSECKeyInfoResolver::clone void    [pure virtual]
 

Clone the resolver to be installed in a new object.

When KeyInfoResolvers are passed into signatures and other objects, they are cloned and control of the original object is left with the caller.

Implemented in XSECKeyInfoResolverDefault.

virtual XSECCryptoKey* XSECKeyInfoResolver::resolveKey DSIGKeyInfoList   lst [pure virtual]
 

Provide a key to the library.

The library will pass the KeyInfoList to the resolver which then needs to provide a key back to the library. The key may have absolutely no relationship to the KeyInfoList (which is only supposed to provide a hint).

If no KeyInfo elements were provided in the Signature, NULL will be passed in.

Parameters:
lst  The list of KeyInfo elements from the signature
Returns:
Either the appropriate key or NULL if none can be found

Implemented in XSECKeyInfoResolverDefault.


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