|
| 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