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 //forward declaration
00024 class CPKIFCertificatePath;
00025 
00026 // forward declaration
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     //added these 10/12/2003 (should've been here all along anyway)
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     //added 2/10/2003 - CRW
00093     void SetOverrideCallback(bool (* overrideCallback) (int, CPKIFCertificatePtr&,const CPKIFCertificatePath&));
00094     bool (* GetOverrideCallback()) (int, CPKIFCertificatePtr&,const CPKIFCertificatePath&);
00095 
00096     //added 2/20/2003 - CRW (in support of nocheck processing for OCSP)
00097     void SetCheckRevocationStatus(bool checkRevStatus);
00098     bool GetCheckRevocationStatus() const;
00099 
00100     //added 9/11/03 - CRW (in support of archive record verification)
00101     void SetValidationTime(CPKIFTimePtr& time);
00102     CPKIFTimePtr GetValidationTime() const;
00103 
00104     void SetRequireValidationTimeNesting(bool b);
00105     bool GetRequireValidationTimeNesting();
00106 
00107     //added 7/15/2004 Armen (in support of depth limit and CRL size limit)
00108     int GetDepth() const; //made const 7/25/2004
00109 //  int getMaxCRLSize() const;
00110     void SetDepth(int d);
00111 //  void setMaxCRLSize(int max);
00112 
00113     //added these 7/18/2004 - CRW (relocated from OCSP checker for use in CRL checker too)
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); //added 4/6/2004
00122 
00123     struct CPKIFPathSettingsImp *m_impl;
00124 }; 
00125 DECLARE_SMART_POINTERS(CPKIFPathSettings);
00126 
00127 #endif
00128 

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