ScvpResponderEntryDlg.h

Go to the documentation of this file.
00001 
00009 #ifndef __ScvpResponderEntryDlg_H__
00010 #define __ScvpResponderEntryDlg_H__
00011 
00012 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && defined(PKIFRESOURCES_ALLOW_GCC_PRAGMA)
00013     #pragma interface "ScvpResponderEntryDlg.cpp"
00014 #endif
00015 
00016 #ifndef WX_PRECOMP
00017     #include "wx/wx.h"
00018 #endif
00019 
00020 #include "PKIFResources_wdr.h"
00021 #include "PKIFResources.h"
00022 #include "pkif.h"
00023 #include <vector>
00024 #include "ClickableStaticText.h"
00025 
00026 FD_SMART_PTR(IPKIFScvpClient);
00027 FD_SMART_PTR(CPKIFContentInfo);
00028 FD_SMART_PTR(CPKIFEvidenceRecordVerifier);
00029 
00030 // WDR: class declarations
00031 
00032 //----------------------------------------------------------------------------
00033 // CScvpResponderEntryDlg
00034 //----------------------------------------------------------------------------
00041 class PKIFRESOURCES_API CScvpResponderEntryDlg: public wxDialog
00042 {
00043 public:
00044     // constructors and destructors
00045     CScvpResponderEntryDlg( wxWindow *parent, wxWindowID id, const wxString &title,
00046         const wxPoint& pos = wxDefaultPosition,
00047         const wxSize& size = wxDefaultSize,
00048         long style = wxDEFAULT_DIALOG_STYLE );
00049     virtual ~CScvpResponderEntryDlg();
00050     
00051     // WDR: method declarations for CScvpResponderEntryDlg
00052 
00053     //SCVP responder location information group box
00054     wxTextCtrl* GetTextUrlScvp()            { return (wxTextCtrl*) FindWindow( ID_TEXT_URL_SCVP ); }
00055     wxCheckBox* GetCheckScvpDpdOnly()       { return (wxCheckBox*) FindWindow( ID_CHECK_SCVP_DPD_ONLY ); }
00056     wxCheckBox* GetCheckRequireSignedDpd()  { return (wxCheckBox*) FindWindow( ID_CHECKBOX_SIGNED_DPD ); }
00057     wxCheckBox* GetCheckRequireNonce()      { return (wxCheckBox*) FindWindow( ID_CHECKBOX_NONCE ); }
00058     wxRadioButton* GetClientValidatedDpd()  { return (wxRadioButton*) FindWindow( ID_RADIOBUTTON_DPD_OPTION ); }
00059     wxRadioButton* GetResponderValidatedDpd()  { return (wxRadioButton*) FindWindow( ID_RADIOBUTTON_DPD_VALIDATED ); }
00060 
00061     //Want backs group box
00062     wxCheckBox* GetCertPathWB()         { return (wxCheckBox*) FindWindow( ID_CHECKBOX_CERTPATH_WB ); }
00063     wxCheckBox* GetRevInfoWB()          { return (wxCheckBox*) FindWindow( ID_CHECKBOX_REVINFO_WB ); }
00064     wxCheckBox* GetPartialPathWB()      { return (wxCheckBox*) FindWindow( ID_CHECKBOX_PP_WB ); }
00065     wxCheckBox* GetTargetCertWB()       { return (wxCheckBox*) FindWindow( ID_CHECKBOX_PKC_WB ); }
00066     wxCheckBox* GetErsPartialPathWB()   { return (wxCheckBox*) FindWindow( ID_CHECKBOX_ERSPP_WB ); }
00067     wxCheckBox* GetErsTargetCertWB()    { return (wxCheckBox*) FindWindow( ID_CHECKBOX_ERSPKC_WB ); }
00068     wxCheckBox* GetErsRevInfoWB()       { return (wxCheckBox*) FindWindow( ID_CHECKBOX_ERSREVINFO_WB ); }
00069 
00070     //Validation policy group box
00071     wxCheckBox* GetCheckboxFetchValpol(){ return (wxCheckBox*) FindWindow( ID_CHECKBOX_FETCH_VALPOL ); }
00072     wxStaticText* GetTextValpolStatus() { return (wxStaticText*) FindWindow( ID_TEXT_VALPOL_STATUS ); }
00073     wxComboBox* GetComboBoxValpol() { return (wxComboBox*) FindWindow( ID_COMBO_VAL_POL ); }
00074 
00075     //SCVP request signing credential group box
00076     wxTextCtrl* GetTextSignersNameScvp()  { return (wxTextCtrl*) FindWindow( ID_TEXT_SIGNERS_NAME_SCVP ); }
00077     wxTextCtrl* GetTextSignersSkidScvp()  { return (wxTextCtrl*) FindWindow( ID_TEXT_SIGNERS_SKID_SCVP ); }
00078     
00079     //Acceptable namespaces group box
00080     wxListBox* GetListboxNamespacesScvp()  { return (wxListBox*) FindWindow( ID_LISTBOX_NAMESPACES_SCVP ); }
00081 
00082     //Settings for SCVP response verification group box
00083     wxCheckBox* GetCheckboxScvpResponsePath()   { return (wxCheckBox*) FindWindow( ID_CHECKBOX_SCVP_RESPONSE_PATH ); }
00084     wxCheckBox* GetCheckboxScvpResponseMeds()   { return (wxCheckBox*) FindWindow( ID_CHECKBOX_SCVP_RESPONSE_MEDS ); }
00085     wxButton* GetScvpResponsePath()             { return (wxButton*) FindWindow( ID_BUTTON_SCVP_RESPONSE_PATH ); }
00086     wxButton* GetScvpResponseMeds()             { return (wxButton*) FindWindow( ID_BUTTON_SCVP_RESPONSE_MEDS ); }
00087 
00088     //Custom validation policy group box
00089     wxCheckBox* GetCheckboxValPolMeds()     { return (wxCheckBox*) FindWindow( ID_CHECKBOX_VAL_POL_PATH ); }
00090     wxButton* GetValPolMeds()               { return (wxButton*) FindWindow( ID_BUTTON_VAL_POL_PATH ); }
00091 
00092     //basic events
00093     virtual bool Validate();
00094     virtual bool TransferDataToWindow();
00095     virtual bool TransferDataFromWindow();
00096     void OnInitDialog(wxInitDialogEvent& event);
00097    
00098     //**********************************************************************************************
00099     // Pre-display prep
00100     //**********************************************************************************************
00101     void SetInitialScvpClient(IPKIFScvpClientPtr& scvp);
00102     void SetMediatorForCredentialSelection(IPKIFMediatorPtr& m) {m_medsForCreds = m;}   
00103 
00104     //**********************************************************************************************
00105     // Post-display collection
00106     //**********************************************************************************************
00107     IPKIFScvpClientPtr GetScvpClient();
00108 
00109 
00110 private:
00111     // WDR: member variable declarations for CScvpResponderEntryDlg
00112     
00113 private:
00114     // WDR: handler declarations for CScvpResponderEntryDlg
00115     void OnClickConfigureErVerifier( wxCommandEvent &event );
00116     void OnLoadNow( wxCommandEvent &event );
00117     void OnScvpResponseMeds( wxCommandEvent &event );
00118     void OnScvpResponsePath( wxCommandEvent &event );
00119     void OnValPolPath( wxCommandEvent &event );
00120     void OnCheckValPolPath( wxCommandEvent &event );
00121     void OnCheckScvpResponsePath( wxCommandEvent &event );
00122     void OnCheckScvpResponseMeds( wxCommandEvent &event );
00123     void OnRemoveNamespace( wxCommandEvent &event );
00124     void OnAddNamespace( wxCommandEvent &event );
00125     void OnClearCredential( wxCommandEvent &event );
00126     void OnSelectCredential( wxCommandEvent &event );
00127     void OnOk( wxCommandEvent &event );
00128     void OnCancel( wxCommandEvent &event );
00129     void OnClickSCVPDPDOnly( wxCommandEvent &event );
00130 
00131     //SCVP responder location information group box
00132     wxString m_url;
00133     bool m_bDpdOnly;
00134     bool m_bGenerateNonce;
00135     bool m_bRequireNonceMatch;
00136     bool m_bRequireSignedDPD;
00137 
00138     //Want backs group box
00139     CPKIFOIDListPtr m_wantBacks;
00140 
00141     //Evidence record verifier
00142     CPKIFEvidenceRecordVerifierPtr m_erv;
00143 
00144     //Validation policy group box
00145     CPKIFContentInfoPtr m_valPol;
00146     bool m_bFetchValPol;
00147 
00148     //SCVP request signing credential group box
00149     CPKIFCredentialPtr m_cred;
00150     IPKIFMediatorPtr m_medsForCreds;
00151 
00152     //Acceptable namespaces group box
00153     CPKIFGeneralSubtreeList m_rndList;
00154 
00155     //Settings for SCVP response verification group box
00156     IPKIFMediatorPtr m_scvpResponseMeds;
00157     CPKIFPathSettingsPtr m_scvpResponsePath;
00158 
00159     //Custom validation policy group box
00160     CPKIFPathSettingsPtr m_valPolPath;
00161 
00162     void ClearMembers();
00163     void DisplayValPolTime();
00164 
00165 private:
00166     DECLARE_EVENT_TABLE()
00167 };
00168 
00169 #endif

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