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

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

#include <XSECKeyInfoResolver.hpp>

Inheritance diagram for XSECKeyInfoResolver:

Inheritance graph
[legend]
List of all members.

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.


Public Member Functions

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


Constructor & Destructor Documentation

XSECKeyInfoResolver::XSECKeyInfoResolver  )  [inline]
 

virtual XSECKeyInfoResolver::~XSECKeyInfoResolver  )  [inline, virtual]
 


Member Function Documentation

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