aboutsummaryrefslogtreecommitdiff
path: root/cc/primitive_set.h
diff options
context:
space:
mode:
authorThai Duong <thaidn@google.com>2017-10-25 10:59:07 -0700
committerThai Duong <thaidn@google.com>2017-10-25 23:46:19 -0700
commit82bdfb4ca462e2cdf64f4748bc99642d24946c33 (patch)
tree2d4555c1dec5d328c32ab838e4414495d49af327 /cc/primitive_set.h
parent3fd5d31d766412a4191839e08d0ee712dfe408f7 (diff)
downloadtink-82bdfb4ca462e2cdf64f4748bc99642d24946c33.tar.gz
Replacing google::protobuf::StringPiece with absl::string_view.
Change-Id: I0e0d9245e50a5d98b6e261f07c886d72cf97afd5 ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com> GitOrigin-RevId: cc4c8808cdf631449679a26f94e289008d0d5b71
Diffstat (limited to 'cc/primitive_set.h')
-rw-r--r--cc/primitive_set.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/primitive_set.h b/cc/primitive_set.h
index f87217aa2..fafd9be62 100644
--- a/cc/primitive_set.h
+++ b/cc/primitive_set.h
@@ -24,7 +24,6 @@
#include "cc/crypto_format.h"
#include "cc/util/errors.h"
#include "cc/util/statusor.h"
-#include "google/protobuf/stubs/stringpiece.h"
#include "proto/tink.pb.h"
namespace crypto {
@@ -60,8 +59,11 @@ class PrimitiveSet {
: primitive_(std::move(primitive)),
identifier_(identifier),
status_(status) {}
+
P2& get_primitive() const { return *primitive_; }
+
const std::string& get_identifier() const { return identifier_; }
+
const google::crypto::tink::KeyStatusType get_status() const {
return status_;
}