IssuedBy.cpp

Go to the documentation of this file.
00001 
00009 #include "IssuedBy.h"
00010 #include "PKIFCertificateNodeEntry.h"
00011 #include "PKIFNameAndKeyWithScore.h"
00012 #include "Certificate.h"
00013 #include "Name.h"
00021 IssuedBy::IssuedBy ()
00022 {
00023 }
00031 IssuedBy::~IssuedBy ()
00032 {
00033 }
00034 
00042 bool IssuedBy::operator()(
00044     const CPKIFCertificateNodeEntryPtr& lhs)
00045 {
00046     return *lhs->GetCert()->Issuer() == *m_rhs;
00047 }
00055 void IssuedBy::SetRHS(
00057     CPKIFNamePtr& rhs) 
00058 {
00059     m_rhs = rhs;
00060 }
00061 
00069 IssuedTo::IssuedTo ()
00070 {
00071 }
00079 IssuedTo::~IssuedTo ()
00080 {
00081 }
00082 
00090 bool IssuedTo::operator()(
00092     const CPKIFNameAndKeyWithScorePtr& lhs)
00093 {
00094     return *lhs->GetNameAndKey()->GetSubjectName() == *m_rhs;
00095 }
00103 void IssuedTo::SetRHS(
00105     CPKIFNamePtr& rhs) 
00106 {
00107     m_rhs = rhs;
00108 }
00109 
00117 IssuedByNameAndKey::IssuedByNameAndKey ()
00118 {
00119 }
00127 IssuedByNameAndKey::~IssuedByNameAndKey ()
00128 {
00129 }
00130 
00138 bool IssuedByNameAndKey::operator()(
00140     const CPKIFNameAndKeyWithScorePtr& lhs)
00141 {
00142     return *lhs->GetNameAndKey()->GetIssuerName() == *m_rhs;
00143 }
00151 void IssuedByNameAndKey::SetRHS(
00153     CPKIFNamePtr& rhs) 
00154 {
00155     m_rhs = rhs;
00156 }
00157 
00158 
00159 
00167 NotIssuedBy::NotIssuedBy ()
00168 {
00169 }
00177 NotIssuedBy::~NotIssuedBy ()
00178 {
00179 }
00180 
00188 bool NotIssuedBy::operator()(
00190     const CPKIFCertificateNodeEntryPtr& lhs)
00191 {
00192     return !(*lhs->GetCert()->Issuer() == *m_rhs);
00193 }
00201 void NotIssuedBy::SetRHS(
00203     CPKIFNamePtr& rhs) 
00204 {
00205     m_rhs = rhs;
00206 }
00207 
00215 NotIssuedTo::NotIssuedTo ()
00216 {
00217 }
00225 NotIssuedTo::~NotIssuedTo ()
00226 {
00227 }
00228 
00236 bool NotIssuedTo::operator()(
00238     const CPKIFCertificateNodeEntryPtr& lhs)
00239 {
00240     return !(*lhs->GetCert()->Subject() == *m_rhs);
00241 }
00249 void NotIssuedTo::SetRHS(
00251     CPKIFNamePtr& rhs) 
00252 {
00253     m_rhs = rhs;
00254 }

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