PKIFXSECCryptoX509 Class Reference

#include <PKIFXSECCryptoX509.h>

Inheritance diagram for PKIFXSECCryptoX509:

Inheritance graph
[legend]
Collaboration diagram for PKIFXSECCryptoX509:

Collaboration graph
[legend]

List of all members.


Detailed Description

Handles X.509 certificate processing

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

Constructor & Destructor Documentation

PKIFXSECCryptoX509::PKIFXSECCryptoX509 (  ) 

Interface: External

Construct an empty PKIFXSECCryptoX509 object

Returns:
None

Definition at line 40 of file PKIFXSECCryptoX509.cpp.

PKIFXSECCryptoX509::~PKIFXSECCryptoX509 (  )  [virtual]

Interface: External

free resources used by a PKIFXSECCryptoX509 object

Returns:
None

Definition at line 52 of file PKIFXSECCryptoX509.cpp.

References m_impl.


Member Function Documentation

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

Returns:
KeyType

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

Returns:
a public key object created from the certificate's key material or NULL if none could be created

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

Returns:
Name of the PKIF XML 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

Returns:
none
Parameters:
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

Returns:
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

Returns:
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

Returns:
none
Parameters:
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

Returns:
None

Definition at line 174 of file PKIFXSECCryptoX509.cpp.

References B64Encode(), and m_impl.


Member Data Documentation

PKIFXSECCryptoX509Impl* PKIFXSECCryptoX509::m_impl [protected]


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