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

Method IsCurrentKeyValid

be/src/kudu/security/token_signer.cc:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194bool TokenSigner::IsCurrentKeyValid() const {
195 shared_lock<RWMutex> l(lock_);
196 if (tsk_deque_.empty()) {
197 return false;
198 }
199 return (tsk_deque_.front()->expire_time() > WallTime_Now());
200}
201
202Status TokenSigner::CheckNeedKey(unique_ptr<TokenSigningPrivateKey>* tsk) const {
203 CHECK(tsk);

Callers 1

TEST_FFunction · 0.80

Calls 4

WallTime_NowFunction · 0.85
expire_timeMethod · 0.80
frontMethod · 0.80
emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.64