PKIFPathSettings.h
Go to the documentation of this file.00001
00010 #ifndef __PKIFPATHSETTINGS_H__
00011 #define __PKIFPATHSETTINGS_H__
00012
00013 #include "PKIFdll.h"
00014
00015 #include <vector>
00016
00017 FD_LIST_PTR(CPKIFPolicyInformation);
00018 FD_LIST_PTR(CPKIFGeneralSubtree);
00019 FD_SMART_PTR(CPKIFDuration);
00020 FD_SMART_PTR(CPKIFTime);
00021 FD_SMART_PTR(CPKIFCertificate);
00022
00023
00024 class CPKIFCertificatePath;
00025
00026
00027 struct CPKIFPathSettingsImp;
00028
00054 class CAC_API CPKIFPathSettings
00055 {
00056 public:
00057 CPKIFPathSettings(void);
00058 CPKIFPathSettings(const CPKIFPathSettings& settings);
00059 virtual ~CPKIFPathSettings(void);
00060
00061 void SetUseValidatorFilterWhenBuilding(bool b);
00062 bool GetUseValidatorFilterWhenBuilding() const;
00063
00064 enum {EXPLICIT_POLICY, POLICY_MAPPING, ANY_POLICY};
00065
00066
00067 void SetInitialExplicitPolicyIndicator(bool b);
00068 void SetInitialPolicyMappingInhibitIndicator(bool b);
00069 void SetInitialInhibitAnyPolicyIndicator(bool b);
00070
00071 void SetInitialExplicitPolicyIndicator();
00072 bool GetInitialExplicitPolicyIndicator();
00073
00074 void SetInitialPolicyMappingInhibitIndicator();
00075 bool GetInitialPolicyMappingInhibitIndicator();
00076
00077 void SetInitialInhibitAnyPolicyIndicator();
00078 bool GetInitialInhibitAnyPolicyIndicator();
00079
00080 void SetInitialPolicySet(CPKIFPolicyInformationListPtr& initPolSet);
00081 void GetInitialPolicySet(CPKIFPolicyInformationListPtr& initPolSet, bool bReturnAnyPolicyWhenEmpty = true)const;
00082
00083 void SetInitialPermSubtrees(CPKIFGeneralSubtreeListPtr& permSubtrees);
00084 void GetInitialPermSubtrees(CPKIFGeneralSubtreeListPtr& permSubtrees)const;
00085
00086 void SetInitialExclSubtrees(CPKIFGeneralSubtreeListPtr& exclSubtrees);
00087 void GetInitialExclSubtrees(CPKIFGeneralSubtreeListPtr& exclSubtrees)const;
00088
00089 void SetRequireFreshRevocationData(bool b);
00090 bool GetRequireFreshRevocationData() const;
00091
00092
00093 void SetOverrideCallback(bool (* overrideCallback) (int, CPKIFCertificatePtr&,const CPKIFCertificatePath&));
00094 bool (* GetOverrideCallback()) (int, CPKIFCertificatePtr&,const CPKIFCertificatePath&);
00095
00096
00097 void SetCheckRevocationStatus(bool checkRevStatus);
00098 bool GetCheckRevocationStatus() const;
00099
00100
00101 void SetValidationTime(CPKIFTimePtr& time);
00102 CPKIFTimePtr GetValidationTime() const;
00103
00104 void SetRequireValidationTimeNesting(bool b);
00105 bool GetRequireValidationTimeNesting();
00106
00107
00108 int GetDepth() const;
00109
00110 void SetDepth(int d);
00111
00112
00113
00114 void SetRequireSufficientlyRecent(bool requireSufficientlyRecent);
00115 bool GetRequireSufficientlyRecent()const;
00116 void SetSufficientlyRecent(int seconds);
00117 CPKIFDurationPtr GetDuration()const;
00118
00119 private:
00121 CPKIFPathSettings& operator=(const CPKIFPathSettings& rhs);
00122
00123 struct CPKIFPathSettingsImp *m_impl;
00124 };
00125 DECLARE_SMART_POINTERS(CPKIFPathSettings);
00126
00127 #endif
00128