comparison OrthancServer/DicomProtocol/IApplicationEntityFilter.h @ 620:4aa6f0d79947 find-move-scp

security filter for dicom requests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Oct 2013 12:36:00 +0200
parents 4d5f0857ec9c
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
619:70d0f27e5bd3 620:4aa6f0d79947
30 **/ 30 **/
31 31
32 32
33 #pragma once 33 #pragma once
34 34
35 #include "../ServerEnumerations.h"
36
35 #include <string> 37 #include <string>
36 38
37 namespace Orthanc 39 namespace Orthanc
38 { 40 {
39 class IApplicationEntityFilter 41 class IApplicationEntityFilter
41 public: 43 public:
42 virtual ~IApplicationEntityFilter() 44 virtual ~IApplicationEntityFilter()
43 { 45 {
44 } 46 }
45 47
46 virtual bool IsAllowed(const std::string& callingIp, 48 virtual bool IsAllowedConnection(const std::string& callingIp,
47 const std::string& callingAet) = 0; 49 const std::string& callingAet) = 0;
50
51 virtual bool IsAllowedRequest(const std::string& callingIp,
52 const std::string& callingAet,
53 DicomRequestType type) = 0;
48 }; 54 };
49 } 55 }