diff options
| author | Robert Berry <robertberry@google.com> | 2018-03-22 13:48:31 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-03-22 13:48:31 +0000 |
| commit | 98ea60c42766e973eb787a55a9b84ca91981c9e0 (patch) | |
| tree | e81bb5f7807920ded6331f29727839c47606000f /core/java | |
| parent | bf121d2f13cb4f2f136fc1563553d93d8ba202d8 (diff) | |
| parent | e7997a3ea7c5dea839220ae832ea5ff7a7dc7742 (diff) | |
Merge "Unhide the new RecoverySession#start with the alias for root cert" into pi-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/security/keystore/recovery/RecoverySession.java | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/core/java/android/security/keystore/recovery/RecoverySession.java b/core/java/android/security/keystore/recovery/RecoverySession.java index 744bfa3029be..f61569e68a7d 100644 --- a/core/java/android/security/keystore/recovery/RecoverySession.java +++ b/core/java/android/security/keystore/recovery/RecoverySession.java @@ -77,7 +77,7 @@ public class RecoverySession implements AutoCloseable { } /** - * @deprecated Use {@link #start(CertPath, byte[], byte[], List)} instead. + * @deprecated Use {@link #start(String, CertPath, byte[], byte[], List)} instead. */ @Deprecated @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @@ -108,25 +108,9 @@ public class RecoverySession implements AutoCloseable { } /** - * Starts a recovery session and returns a blob with proof of recovery secret possession. - * The method generates a symmetric key for a session, which trusted remote device can use to - * return recovery key. - * - * @param verifierCertPath The certificate path used to create the recovery blob on the source - * device. Keystore will verify the certificate path by using the root of trust. - * @param vaultParams Must match the parameters in the corresponding field in the recovery blob. - * Used to limit number of guesses. - * @param vaultChallenge Data passed from server for this recovery session and used to prevent - * replay attacks. - * @param secrets Secrets provided by user, the method only uses type and secret fields. - * @return The recovery claim. Claim provides a b binary blob with recovery claim. It is - * encrypted with verifierPublicKey and contains a proof of user secrets, session symmetric - * key and parameters necessary to identify the counter with the number of failed recovery - * attempts. - * @throws CertificateException if the {@code verifierCertPath} is invalid. - * @throws InternalRecoveryServiceException if an unexpected error occurred in the recovery - * service. + * @deprecated Use {@link #start(String, CertPath, byte[], byte[], List)} instead. */ + @Deprecated @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public byte[] start( @NonNull CertPath verifierCertPath, @@ -179,8 +163,6 @@ public class RecoverySession implements AutoCloseable { * @throws CertificateException if the {@code verifierCertPath} is invalid. * @throws InternalRecoveryServiceException if an unexpected error occurred in the recovery * service. - * - * @hide */ @RequiresPermission(android.Manifest.permission.RECOVER_KEYSTORE) @NonNull public byte[] start( |
