1 /*
2  * Copyright (C) 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.federatedcompute.services.data;
18 
19 public final class ODPAuthorizationTokenContract {
20     public static final String ODP_AUTHORIZATION_TOKEN_TABLE = "odp_authorization_tokens";
21 
ODPAuthorizationTokenContract()22     private ODPAuthorizationTokenContract() {}
23 
24     public static final class ODPAuthorizationTokenColumns {
ODPAuthorizationTokenColumns()25         private ODPAuthorizationTokenColumns() {}
26 
27         /**
28          * An identifier for different ODP adopters (e.g, server address, calling package name,
29          * etc).
30          */
31         public static final String OWNER_IDENTIFIER = "owner_identifier";
32 
33         /**
34          * The authorization token received from the server.
35          */
36         public static final String AUTHORIZATION_TOKEN = "authorization_token";
37 
38         /** Create time of the authorization token in the database in milliseconds. */
39         public static final String CREATION_TIME = "creation_time";
40 
41         /** Expiry time of the authorization token in milliseconds. */
42         public static final String EXPIRY_TIME = "expiry_time";
43     }
44 }
45