comparison Plugin/AuthorizationWebService.h @ 190:de232f9b3a60

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Jun 2024 15:08:41 +0200
parents c4b908970ae4
children 2f1e872e8eaa
comparison
equal deleted inserted replaced
188:c4b908970ae4 190:de232f9b3a60
67 void SetCredentials(const std::string& username, 67 void SetCredentials(const std::string& username,
68 const std::string& password); 68 const std::string& password);
69 69
70 void SetIdentifier(const std::string& webServiceIdentifier); 70 void SetIdentifier(const std::string& webServiceIdentifier);
71 71
72 virtual bool HasUserProfile() const 72 virtual bool HasUserProfile() const ORTHANC_OVERRIDE
73 { 73 {
74 return !userProfileUrl_.empty(); 74 return !userProfileUrl_.empty();
75 } 75 }
76 76
77 virtual bool HasCreateToken() const 77 virtual bool HasCreateToken() const ORTHANC_OVERRIDE
78 { 78 {
79 return !tokenCreationBaseUrl_.empty(); 79 return !tokenCreationBaseUrl_.empty();
80 } 80 }
81 81
82 virtual bool HasTokenValidation() const 82 virtual bool HasTokenValidation() const ORTHANC_OVERRIDE
83 { 83 {
84 return !tokenValidationUrl_.empty(); 84 return !tokenValidationUrl_.empty();
85 } 85 }
86 86
87 virtual bool CreateToken(IAuthorizationService::CreatedToken& response, 87 virtual bool CreateToken(IAuthorizationService::CreatedToken& response,
91 const std::string& expirationDateString, 91 const std::string& expirationDateString,
92 const uint64_t& validityDuration) ORTHANC_OVERRIDE; 92 const uint64_t& validityDuration) ORTHANC_OVERRIDE;
93 93
94 virtual bool DecodeToken(DecodedToken& response, 94 virtual bool DecodeToken(DecodedToken& response,
95 const std::string& tokenKey, 95 const std::string& tokenKey,
96 const std::string& tokenValue); 96 const std::string& tokenValue) ORTHANC_OVERRIDE;
97 97
98 static void ToJson(Json::Value& output, const UserProfile& profile); 98 static void ToJson(Json::Value& output, const UserProfile& profile);
99 99
100 static void FromJson(UserProfile& profile, const Json::Value& input); 100 static void FromJson(UserProfile& profile, const Json::Value& input);
101 101