OcspResponderEntryDlg.h

Go to the documentation of this file.
00001 
00010 #ifndef __OcspResponderEntryDlg_H__
00011 #define __OcspResponderEntryDlg_H__
00012 
00013 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00014     #pragma interface "OcspResponderEntryDlg.cpp"
00015 #endif
00016 
00017 #ifndef WX_PRECOMP
00018     #include "wx/wx.h"
00019 #endif
00020 
00021 #include "PKIFResources_wdr.h"
00022 #include "PKIFResources.h"
00023 #include "pkif.h"
00024 #include <vector>
00025 #include "ClickableStaticText.h"
00026 
00027 // WDR: class declarations
00028 
00029 //----------------------------------------------------------------------------
00030 // CPKIFOcspResponderEntryDlg
00031 //----------------------------------------------------------------------------
00032 
00044 class PKIFRESOURCES_API CPKIFOcspResponderEntryDlg: public wxDialog
00045 {
00046 public:
00047     // constructors and destructors
00048     CPKIFOcspResponderEntryDlg( wxWindow *parent, wxWindowID id, const wxString &title,
00049         const wxPoint& pos = wxDefaultPosition,
00050         const wxSize& size = wxDefaultSize,
00051         long style = wxDEFAULT_DIALOG_STYLE );
00052     
00053     // WDR: method declarations for CPKIFOcspResponderEntryDlg
00054     wxTextCtrl* GetTextSignersName()  { return (wxTextCtrl*) FindWindow( ID_TEXT_SIGNERS_NAME ); }
00055     wxTextCtrl* GetTextSignersSkid()  { return (wxTextCtrl*) FindWindow( ID_TEXT_SIGNERS_SKID ); }
00056     wxTextCtrl* GetTextName()  { return (wxTextCtrl*) FindWindow( ID_TEXT_NAME ); }
00057     wxTextCtrl* GetTextSkid()  { return (wxTextCtrl*) FindWindow( ID_TEXT_SKID ); }
00058     wxTextCtrl* GetTextUrl()  { return (wxTextCtrl*) FindWindow( ID_TEXT_URL ); }
00059     wxListBox* GetNamespaceList()  { return (wxListBox*) FindWindow( ID_LISTBOX_OCSP_NAMESPACES ); }
00060     wxListBox* GetIssuerNamespaceList()  { return (wxListBox*) FindWindow( ID_LISTBOX_OCSP_NAMESPACES_ISSUER ); }
00061 
00062     wxCheckBox* GetGenerateNonceWx()  { return (wxCheckBox*) FindWindow( ID_CHECKBOX_GENERATE_NONCE ); } 
00063     wxCheckBox* GetRequireNonceMatchWx()  { return (wxCheckBox*) FindWindow( ID_CHECKBOX_REQUIRE_NONCE_MATCH ); } 
00064     wxCheckBox* GetCacheRespondersWx()  { return (wxCheckBox*) FindWindow( ID_CHECK_CACHE_RESPONDERS ); } 
00065     wxCheckBox* GetMultipleCertWx()  { return (wxCheckBox*) FindWindow( ID_CHECK_OCSP_MULTYCERT ); } 
00066     void OnInitDialog(wxInitDialogEvent& event);
00067 
00068     void GetUrl(wxString& address) const;
00069     void SetUrl(wxString& address);
00070 
00071     CPKIFOCSPCheckerPtr GetOCSPChecker();
00072     void SetInitialOCSPChecker(CPKIFOCSPCheckerPtr& ocsp);
00073 
00074     CPKIFGeneralSubtreeList GetNamespaces() const;
00075     void SetNamespaces(CPKIFGeneralSubtreeList &rdnList);
00076     CPKIFGeneralSubtreeList GetIssuerNamespaces() const;
00077     void SetIssuerNamespaces(CPKIFGeneralSubtreeList &rdnList);
00078 
00079     void SetMultipleCert(bool b);
00080     bool GetMultipleCert();
00081 
00082     void SetCacheResponders(bool b);
00083     bool GetCacheResponders();
00084 
00085     void SetGenerateNonce(bool b);
00086     bool GetGenerateNonce();
00087 
00088     void SetRequireNonceMatch(bool b);
00089     bool GetRequireNonceMatch();
00090 
00091     bool SetMediator(IPKIFMediatorPtr& m);
00092     
00093 private:
00094     // WDR: member variable declarations for CPKIFOcspResponderEntryDlg
00095 
00096     CPKIFGeneralSubtreeList m_rndList;
00097     CPKIFGeneralSubtreeList m_issuerNamespaceList;
00098     
00099 private:
00100     // WDR: handler declarations for CPKIFOcspResponderEntryDlg
00101     void OnSelectResponderCertificate( wxCommandEvent &event );
00102     void OnClearResponderCertificate( wxCommandEvent &event );
00103     void OnCancel( wxCommandEvent &event );
00104     void OnOK( wxCommandEvent &event );
00105     void OnClearOcspCredential( wxCommandEvent &event );
00106     void OnSelectOcspCredential( wxCommandEvent &event );
00107     void AddNamespace( wxCommandEvent &event );
00108     void RemoveNamespace( wxCommandEvent &event );
00109     void AddNamespaceIssuer( wxCommandEvent &event );
00110     void RemoveNamespaceIssuer( wxCommandEvent &event );
00111 
00112     wxString m_url;
00113     CPKIFCertificatePtr m_responderCert;
00114     CPKIFCredentialPtr m_cred;
00115     IPKIFMediatorPtr m_mediator;
00116     bool m_mCert;
00117     bool m_bCacheResponders;
00118     bool m_bGenerateNonce;
00119     bool m_bRequireNonceMatch;
00120 
00121 private:
00122     DECLARE_EVENT_TABLE()
00123 };
00124 
00125 
00126 
00127 
00128 #endif

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