Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Deprecate KeysetHandle.createFromKey(KeyHandle, KeyAccess).
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 384825617
  • Loading branch information
atulluykx authored and copybara-github committed Jul 15, 2021
1 parent 204ce78 commit 4eb63c6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ public static final KeysetHandle generateNew(KeyTemplate keyTemplate)
return KeysetManager.withEmptyKeyset().rotate(keyTemplate.getProto()).getKeysetHandle();
}

/** Creates a {@code KeysetHandle} that contains the single {@code KeyHandle} passed as input. */
/**
* Returns a {@code KeysetHandle} that contains the single {@code KeyHandle} passed as input.
*
* @deprecated Use {@code KeysetManager.withEmptyKeyset().add(keyHandle)
* .setPrimary(keyHandle.getId()).getKeysetHandle()} instead.
*/
@Deprecated
public static final KeysetHandle createFromKey(KeyHandle keyHandle, KeyAccess access)
throws GeneralSecurityException {
KeysetManager km = KeysetManager.withEmptyKeyset().add(keyHandle);
Expand Down

0 comments on commit 4eb63c6

Please sign in to comment.