Skip to content

Commit 27f2bd1

Browse files
karnsethcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 888161641
1 parent 8200aed commit 27f2bd1

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

willow/proto/willow/BUILD

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ package(
2121
default_visibility = ["//visibility:public"],
2222
)
2323

24+
proto_library(
25+
name = "auth_token_proto",
26+
srcs = ["auth_token.proto"],
27+
deps = [
28+
"@protobuf//:timestamp_proto",
29+
30+
],
31+
)
32+
33+
cc_proto_library(
34+
name = "auth_token_cc_proto",
35+
deps = [":auth_token_proto"],
36+
)
37+
2438
proto_library(
2539
name = "committee_selector_proto",
2640
srcs = ["committee_selector.proto"],
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
edition = "2023";
16+
17+
package secure_aggregation.willow;
18+
19+
import "google/protobuf/timestamp.proto";
20+
21+
option features.field_presence = IMPLICIT;
22+
option java_multiple_files = true;
23+
option java_package = "com.google.secureaggregation.willow";
24+
option java_outer_classname = "AuthToken";
25+
26+
// The body of the token authorizing requests to the Willow multidecryptor.
27+
// This message is serialized and then authenticated with a MAC.
28+
message AuthTokenPayload {
29+
// The time at which this token becomes invalid.
30+
google.protobuf.Timestamp expiration = 1;
31+
32+
// Add any other relevant data to bind the token to a specific context, for
33+
// example, population name, committee id volunteered for, selected member of
34+
// a committee, etc.
35+
}

0 commit comments

Comments
 (0)