Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
dynamic_watermark.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 * @brief Defines DynamicWatermark interface
29 *
30 * @file dynamic_watermark.h
31 */
32
33#ifndef API_MIP_DYNAMIC_WATERMARK_H_
34#define API_MIP_DYNAMIC_WATERMARK_H_
35
36#include <string>
37
38#include "mip/mip_namespace.h"
39
40MIP_NAMESPACE_BEGIN
41
42/**
43 * @brief Representation of the dynamic watermark which the admin has configured for a label
44 */
46 public:
47
48 /** @cond DOXYGEN_HIDE */
49 virtual ~DynamicWatermark() = default;
50 /** @endcond */
51
52 /**
53 * @brief Gets the raw formatted string the admin has configured, which may include variables such as
54 * ${Consumer.PrincipalName}.
55 * This string can be populated from the label in the protection flow
56 * or it can be populated from the use license in the consumption flow.
57 *
58 * @return The raw format string
59 */
60 virtual const std::string& GetFormatString() const = 0;
61
62 /**
63 * @brief Gets the text which will be displayed to the end user by replacing the variables
64 * in the format string.
65 *
66 * @return The display text an end user sees for the dynamic watermark, with the supported variables replaced
67 */
68 virtual std::string GetText() const = 0;
69};
70
71MIP_NAMESPACE_END
72
73#endif // API_MIP_DYNAMIC_WATERMARK_H_
Representation of the dynamic watermark which the admin has configured for a label.
virtual const std::string & GetFormatString() const =0
Gets the raw formatted string the admin has configured, which may include variables such as ${Consume...
virtual std::string GetText() const =0
Gets the text which will be displayed to the end user by replacing the variables in the format string...
MIP namespace macros.