Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
protection_settings.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (c) Microsoft Corporation.
4 * All rights reserved.
5 *
6 * This code is licensed under the MIT License.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files(the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions :
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 *
26 */
27
28#ifndef API_MIP_FILE_PROTECTION_SETTINGS_H_
29#define API_MIP_FILE_PROTECTION_SETTINGS_H_
30
31#include <string>
32#include "mip/common_types.h"
33#include "mip/mip_namespace.h"
34
35MIP_NAMESPACE_BEGIN
36
37/**
38 * @brief Interface for configuring protection options for the SetLabel method
39 */
41public:
42 ProtectionSettings() = default;
43
45 const std::string& delegatedUserEmail, PFileExtensionBehavior pfileExtensionBehavior) : mDelegatedUserEmail(delegatedUserEmail), mPFileExtensionBehavior(pfileExtensionBehavior) {}
46
47 void SetDelegatedUserEmail(const std::string delegatedUserEmail) { mDelegatedUserEmail = delegatedUserEmail; }
48
49 std::string GetDelegatedUserEmail() const { return mDelegatedUserEmail; }
50
51 void SetPFileExtensionBehavior(PFileExtensionBehavior pfileExtensionBehavior) { mPFileExtensionBehavior = pfileExtensionBehavior; }
52
53 PFileExtensionBehavior GetPFileExtensionBehavior() const { return mPFileExtensionBehavior; }
54
55private:
56 std::string mDelegatedUserEmail;
58};
59
60MIP_NAMESPACE_END
61
62#endif // API_MIP_FILE_PROTECTION_SETTINGS_H_
Interface for configuring protection options for the SetLabel method.
std::string GetDelegatedUserEmail() const
void SetDelegatedUserEmail(const std::string delegatedUserEmail)
ProtectionSettings()=default
ProtectionSettings(const std::string &delegatedUserEmail, PFileExtensionBehavior pfileExtensionBehavior)
PFileExtensionBehavior GetPFileExtensionBehavior() const
void SetPFileExtensionBehavior(PFileExtensionBehavior pfileExtensionBehavior)
A file Containing the common types used by the upe, file and protection modules.
PFileExtensionBehavior
Describes PFile extensions behavior.
@ Default
Extensions will become as SDK default behavior
MIP namespace macros.