-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DeviceCheck API for iOS Testflight backup enablement
- Loading branch information
1 parent
fb6c4ec
commit 2c16335
Showing
29 changed files
with
1,877 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...in/java/org/whispersystems/textsecuregcm/configuration/AppleDeviceCheckConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright 2024 Signal Messenger, LLC | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
package org.whispersystems.textsecuregcm.configuration; | ||
|
||
import java.time.Duration; | ||
|
||
/** | ||
* Configuration for Apple DeviceCheck | ||
* | ||
* @param production Whether this is for production or sandbox attestations | ||
* @param teamId The teamId to validate attestations against | ||
* @param bundleId The bundleId to validation attestations against | ||
*/ | ||
public record AppleDeviceCheckConfiguration( | ||
boolean production, | ||
String teamId, | ||
String bundleId) {} |
15 changes: 15 additions & 0 deletions
15
...rc/main/java/org/whispersystems/textsecuregcm/configuration/DeviceCheckConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2024 Signal Messenger, LLC | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
package org.whispersystems.textsecuregcm.configuration; | ||
|
||
import java.time.Duration; | ||
|
||
/** | ||
* Configuration for Device Check operations | ||
* | ||
* @param backupRedemptionDuration How long to grant backup access for redemptions via device check | ||
* @param backupRedemptionLevel What backup level to grant redemptions via device check | ||
*/ | ||
public record DeviceCheckConfiguration(Duration backupRedemptionDuration, long backupRedemptionLevel) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.