aboutsummaryrefslogtreecommitdiff
path: root/cc/secret_key_access.h
diff options
context:
space:
mode:
authorjuerg <juerg@google.com>2021-12-06 05:41:04 -0800
committerCopybara-Service <copybara-worker@google.com>2021-12-06 05:41:56 -0800
commit51bfcb74b55b34fa9f43069460cc87eaf14f9962 (patch)
tree1a2b34f990973a4fcf5ae2eccf1d03c7201fca96 /cc/secret_key_access.h
parent6e6b979ac57e857b2d2b8dd1dfd3dc21ed463c02 (diff)
downloadtink-51bfcb74b55b34fa9f43069460cc87eaf14f9962.tar.gz
Add key access token class in C++.
PiperOrigin-RevId: 414416639
Diffstat (limited to 'cc/secret_key_access.h')
-rw-r--r--cc/secret_key_access.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/cc/secret_key_access.h b/cc/secret_key_access.h
new file mode 100644
index 000000000..d51e1441e
--- /dev/null
+++ b/cc/secret_key_access.h
@@ -0,0 +1,33 @@
+// Copyright 2021 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+#ifndef THIRD_PARTY_TINK_SECRET_KEY_ACCESS_H_
+#define THIRD_PARTY_TINK_SECRET_KEY_ACCESS_H_
+
+#include "tink/key_access.h"
+
+namespace crypto {
+namespace tink {
+
+class SecretKeyAccess {
+ public:
+ static KeyAccess SecretAccess() { return KeyAccess(true); }
+};
+
+} // namespace tink
+} // namespace crypto
+
+#endif // THIRD_PARTY_TINK_SECRET_KEY_ACCESS_H_