RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
FileCacheEncrypted.h
1 /*
2  * ======================================================================
3  * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
4  * Licensed under the MIT License.
5  * See LICENSE.md in the project root for license information.
6  * ======================================================================
7 */
8 
9 #ifndef FILECACHEENCRYPTED_H
10 #define FILECACHEENCRYPTED_H
11 
12 #include "types.h"
13 #include "FileCache.h"
14 #include "rmsauthExport.h"
15 
16 namespace rmsauth {
17 
18 class RMSAUTH_EXPORT FileCacheEncrypted : public FileCache
19 {
20  static const String Tag() { static const String tag = "FileCacheEncrypted"; return tag;}
21 
22 public:
23  FileCacheEncrypted(const String& filePath = "");
24 
25 protected:
26  virtual void readCache() override;
27  virtual void writeCache() override;
28 
29 private:
30  virtual const String getCacheName() const override {return FileCacheEncrypted::Tag();}
31 };
32 
33 } // namespace rmsauth {
34 
35 #endif // FILECACHEENCRYPTED_H
Definition: FileCacheEncrypted.h:18
Definition: FileCache.h:18
Definition: AcquireTokenForClientHandler.h:14