MCPcopy Create free account
hub / github.com/apache/impala / ExportKeys

Method ExportKeys

be/src/kudu/security/token_verifier.cc:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::vector<TokenSigningPublicKeyPB> TokenVerifier::ExportKeys(
94 int64_t after_sequence_number) const {
95 vector<TokenSigningPublicKeyPB> ret;
96 shared_lock<RWMutex> l(lock_);
97 ret.reserve(keys_by_seq_.size());
98 transform(keys_by_seq_.upper_bound(after_sequence_number),
99 keys_by_seq_.end(),
100 back_inserter(ret),
101 [](const KeysMap::value_type& e) { return e.second->pb(); });
102 return ret;
103}
104
105// Verify the signature on the given token.
106TokenVerificationResult TokenVerifier::VerifyTokenSignature(

Callers 2

TEST_FFunction · 0.80
TEST_PFunction · 0.80

Calls 4

reserveMethod · 0.80
transformFunction · 0.50
sizeMethod · 0.45
endMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_PFunction · 0.64