#include <PKIFXSECKeyInfoResolver.h>
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 XSECKeyInfoResolver * | clone (void) const |
virtual void | SetCallback (IPKIFXSECNotificationCallback *cb) |
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
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
Definition at line 116 of file PKIFXSECKeyInfoResolver.cpp.
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.
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
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.
Definition at line 275 of file PKIFXSECKeyInfoResolver.cpp.