PKIFXSECKeyInfoResolver Class Reference

#include <PKIFXSECKeyInfoResolver.h>

Inheritance diagram for PKIFXSECKeyInfoResolver:

Inheritance graph
[legend]
Collaboration diagram for PKIFXSECKeyInfoResolver:

Collaboration graph
[legend]

List of all members.


Detailed Description

Handles X.509 certificate processing

a more sophisticated KeyInfo resolver that validates paths

TSP-enforcing: No

Definition at line 58 of file PKIFXSECKeyInfoResolver.h.


Public Member Functions

 PKIFXSECKeyInfoResolver (IPKIFMediatorPtr &med, CPKIFPathSettingsPtr &ps, CPKIFFuncStoragePtr &kuChecker)
virtual ~PKIFXSECKeyInfoResolver ()
virtual XSECCryptoKey * resolveKey (DSIGKeyInfoList *lst)
virtual XSECKeyInfoResolverclone (void) const
virtual void SetCallback (IPKIFXSECNotificationCallback *cb)

Constructor & Destructor Documentation

p PKIFXSECKeyInfoResolver::PKIFXSECKeyInfoResolver ( IPKIFMediatorPtr med,
CPKIFPathSettingsPtr &  ps,
CPKIFFuncStoragePtr &  kuChecker 
)

Interface: External

construct a key info resolver given the specified mediator set and (optional) path settings and key usage checker If no path settings are specified, PKIF defaults will be used If no key usage checker is specified, any key usage will be accepted

Returns:
None
Parameters:
med  [in] mediator set to use for path building and validation
ps  [in] path validation settings to use
kuChecker  [in] function object for checking key usage

Definition at line 93 of file PKIFXSECKeyInfoResolver.cpp.

Referenced by clone().

PKIFXSECKeyInfoResolver::~PKIFXSECKeyInfoResolver (  )  [virtual]

Interface: External

free any resources used by a PKIFXSECKeyInfoResolver

Returns:
None

Definition at line 116 of file PKIFXSECKeyInfoResolver.cpp.


Member Function Documentation

XSECCryptoKey * PKIFXSECKeyInfoResolver::resolveKey ( DSIGKeyInfoList *  lst  )  [virtual]

Interface: External

Return a key from the first item in the list that meets the caller's requirements. This means that the path will build and validate here.

Returns:
None
Parameters:
lst  [in] list of keyInfo elements

Definition at line 132 of file PKIFXSECKeyInfoResolver.cpp.

References IPKIFPathBuild::BuildPath(), PKIFXSECCryptoX509::getDEREncodingSB(), PKIFXSECCryptoX509::getPublicKeyType(), PKIFXSECCryptoX509::loadX509Base64Bin(), NOT_CHECKED, NOT_REVOKED, PKIFXSECCryptoKeyDSA::SetKeyMaterial(), PKIFXSECCryptoKeyRSA::SetKeyMaterial(), PKIFXSECCryptoKeyDSA::SetMediator(), PKIFXSECCryptoKeyRSA::SetMediator(), and PKIFXSECCryptoX509::SetMediator().

XSECKeyInfoResolver * PKIFXSECKeyInfoResolver::clone ( void   )  const [virtual]

Interface: External

called by the xml security library to copy the resolver

Returns:
None

Definition at line 260 of file PKIFXSECKeyInfoResolver.cpp.

References m_impl, and PKIFXSECKeyInfoResolver().

void PKIFXSECKeyInfoResolver::SetCallback ( IPKIFXSECNotificationCallback cb  )  [virtual]

Interface: External

called by applications to enable the resolver to notify them of trust decisions being made, since the xsec library doesn't provide a clean interface to get this info out.

Returns:
None

Definition at line 275 of file PKIFXSECKeyInfoResolver.cpp.


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:21:07 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6