#include <PKIFXSECCryptoX509.h>
This lets some PKIF functionality be provided to XSECKeyInfoResolverDefault, but PKIFXSECKeyInfoResolver needs to be used for full path building and validation capabilities.
TSP-enforcing: No
Definition at line 30 of file PKIFXSECCryptoX509.h.
Public Member Functions | |
PKIFXSECCryptoX509 () | |
virtual | ~PKIFXSECCryptoX509 () |
virtual XSECCryptoKey::KeyType | getPublicKeyType () const |
virtual XSECCryptoKey * | clonePublicKey () const |
virtual const XMLCh * | getProviderName () const |
virtual void | loadX509Base64Bin (const char *buf, unsigned int len) |
virtual safeBuffer & | getDEREncodingSB (void) |
virtual const safeBuffer & | getDEREncodingSB (void) const |
virtual void | SetMediator (IPKIFMediatorPtr &med) |
void | SetCertificate (const CPKIFCertificatePtr &cert) |
Protected Attributes | |
PKIFXSECCryptoX509Impl * | m_impl |
PKIFXSECCryptoX509::PKIFXSECCryptoX509 | ( | ) |
Interface: External
Construct an empty PKIFXSECCryptoX509 object
Definition at line 40 of file PKIFXSECCryptoX509.cpp.
PKIFXSECCryptoX509::~PKIFXSECCryptoX509 | ( | ) | [virtual] |
Interface: External
free resources used by a PKIFXSECCryptoX509 object
Definition at line 52 of file PKIFXSECCryptoX509.cpp.
References m_impl.
XSECCryptoKey::KeyType PKIFXSECCryptoX509::getPublicKeyType | ( | ) | const [virtual] |
Interface: External
Called by the xml security library to determine what type of key is in the certificate
free resources used by a PKIFXSECCryptoX509 object
Definition at line 66 of file PKIFXSECCryptoX509.cpp.
References CPKIFAlgorithm::AsymkeyAlg(), PKIFCRYPTO::DSS, CPKIFAlgorithm::GetAlg(), m_impl, and PKIFCRYPTO::RSA.
Referenced by clonePublicKey(), and PKIFXSECKeyInfoResolver::resolveKey().
XSECCryptoKey * PKIFXSECCryptoX509::clonePublicKey | ( | ) | const [virtual] |
Interface: External
Called by the xml security library to obtain a public key object from a certificate
Definition at line 96 of file PKIFXSECCryptoX509.cpp.
References getPublicKeyType(), m_impl, PKIFXSECCryptoKeyDSA::SetKeyMaterial(), PKIFXSECCryptoKeyRSA::SetKeyMaterial(), PKIFXSECCryptoKeyDSA::SetMediator(), and PKIFXSECCryptoKeyRSA::SetMediator().
const XMLCh * PKIFXSECCryptoX509::getProviderName | ( | ) | const [virtual] |
Interface: External
Get the name of the provider
Definition at line 133 of file PKIFXSECCryptoX509.cpp.
References pkifProvName().
void PKIFXSECCryptoX509::loadX509Base64Bin | ( | const char * | buf, | |
unsigned int | len | |||
) | [virtual] |
Interface: External
Load an X.509 certificate from a base64-encoded DER buffer
buf | [in] buffer containing base64-encoded certificate |
len | [in] size of buffer |
Definition at line 145 of file PKIFXSECCryptoX509.cpp.
References m_impl.
Referenced by PKIFXSECKeyInfoResolver::resolveKey().
safeBuffer & PKIFXSECCryptoX509::getDEREncodingSB | ( | void | ) | [virtual] |
Interface: External
Get the encoded certificate
Definition at line 195 of file PKIFXSECCryptoX509.cpp.
References m_impl.
Referenced by PKIFXSECKeyInfoResolver::resolveKey().
const safeBuffer & PKIFXSECCryptoX509::getDEREncodingSB | ( | void | ) | const [virtual] |
Interface: External
Get the encoded certificate
Definition at line 207 of file PKIFXSECCryptoX509.cpp.
References m_impl.
void PKIFXSECCryptoX509::SetMediator | ( | IPKIFMediatorPtr & | med | ) | [virtual] |
Interface: External Set the mediator this object will use to find crypto colleagues
med | [in] Pointer to a mediator object to be used |
Definition at line 219 of file PKIFXSECCryptoX509.cpp.
References m_impl.
Referenced by PKIFXSECKeyInfoResolver::resolveKey(), and PKIFXSECCrypto::X509().
void PKIFXSECCryptoX509::SetCertificate | ( | const CPKIFCertificatePtr & | cert | ) |
Interface: External
Populate from a CPKIFCertificate object
Definition at line 174 of file PKIFXSECCryptoX509.cpp.
References B64Encode(), and m_impl.
PKIFXSECCryptoX509Impl* PKIFXSECCryptoX509::m_impl [protected] |
Definition at line 48 of file PKIFXSECCryptoX509.h.
Referenced by clonePublicKey(), getDEREncodingSB(), getPublicKeyType(), loadX509Base64Bin(), SetCertificate(), SetMediator(), and ~PKIFXSECCryptoX509().