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

Function MakeIncompatibleToken

be/src/kudu/security/token-test.cc:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108SignedTokenPB MakeIncompatibleToken() {
109 SignedTokenPB ret;
110 TokenPB token;
111 token.set_expire_unix_epoch_seconds(WallTime_Now() + 100);
112 token.add_incompatible_features(TokenPB::Feature_MAX + 1);
113 CHECK(token.SerializeToString(ret.mutable_token_data()));
114 return ret;
115}
116
117// Generate public key as a string in DER format for tests.
118Status GeneratePublicKeyStrDer(string* ret) {

Callers 1

TEST_FFunction · 0.85

Calls 2

WallTime_NowFunction · 0.85
SerializeToStringMethod · 0.80

Tested by

no test coverage detected