ResourceUtils.h File Reference


Detailed Description

Subsystem: PKIF Resources

Module: Miscellaneous

Id
ResourceUtils.h 10921 2009-11-19 19:29:14Z agalustyan

Definition in file ResourceUtils.h.

#include "pkif.h"
#include "wx/wxprec.h"
#include "wx/wx.h"

Include dependency graph for ResourceUtils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CPKIFCRLPtr GetCrl (wxString &filename)
CPKIFCertificatePtr GetCert (wxString &filename)
bool ValidateOID (const wxString &attrVal)
bool ValidateOIDComponents (const wxString &attrVal)
const wxString & GetBufferAsAscii (const CPKIFBufferPtr &in, wxString &out)
CPKIFBufferPtr GetBufferFromAscii (wxString &in)
CPKIFCredentialPtr GetCredential (IPKIFMediatorPtr &m, wxString &wxCredBuf)
void StringSplit (const std::string &text, std::string &separators, std::vector< std::string > &words)


Function Documentation

const wxString & GetBufferAsAscii ( const CPKIFBufferPtr &  in,
wxString &  out 
)

Interface: External

This function converts buffer to ASCII string

Returns:
Buffer containing converted ASCII string
Parameters:
in  [in]Buffer to be converted
out  [in]Converted string

Definition at line 2397 of file PKIFMediatorSerializer.cpp.

References btoa().

Referenced by SaveRevocationStatusComponents().

CPKIFBufferPtr GetBufferFromAscii ( wxString &  in  ) 

Interface: External

This function converts ASCII string to a buffer

Returns:
Buffer containing converted ASCII string
Parameters:
in  [in]String to be converted

Definition at line 2418 of file PKIFMediatorSerializer.cpp.

References atob(), and wxASCIIHelper::to_chars().

Referenced by LoadRevocationStatusComponents().

CPKIFCertificatePtr GetCert ( wxString &  filename  ) 

Interface: Subsystem

This function reads a certificate from a file and returns a CPKIFCertificate object

Returns:
Smart pointer to CPKIFCertificate object
Parameters:
filename  [in] Filename

Definition at line 24 of file ResourceUtils.cpp.

CPKIFCredentialPtr GetCredential ( IPKIFMediatorPtr m,
wxString &  wxCredBuf 
)

CPKIFCRLPtr GetCrl ( wxString &  filename  ) 

Interface: Subsystem

This function reads a crl from a file and returns a CPKIFCRL object

Returns:
Smart pointer to CPKIFCRL object
Parameters:
filename  [in] Filename

Definition at line 58 of file ResourceUtils.cpp.

void StringSplit ( const string &  text,
string &  separators,
vector< string > &  words 
)

Interface: Subsystem

This function splits a string based on a specified separator

Returns:
Smart pointer to CPKIFCRL object
Parameters:
text  [in] String to be split
separators  [in] separator
words  [out] Vector of split strings

Definition at line 92 of file ResourceUtils.cpp.

Referenced by CPKIFGeneralCertificateDetailsPanel::OnInitDialog(), CPKIFGeneralCRLDetailsPanel::PopulateListExtensions(), and ValidateOID().

bool ValidateOID ( const wxString &  attrVal  ) 

Interface: Subsystem

This function validates an OID

Returns:
True if OID is ok, false otherwise

Definition at line 118 of file ResourceUtils.cpp.

References StringSplit().

bool ValidateOIDComponents ( const wxString &  attrVal  ) 

Interface: Subsystem

This function validates an OID

Returns:
True if OID is ok, false otherwise

Definition at line 140 of file ResourceUtils.cpp.


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