Skip to content

Commit a54b41c

Browse files
tholenstcopybara-github
authored andcommitted
Deprecate "primaryKey".
PiperOrigin-RevId: 547121954 Change-Id: I35a3ac63dcd2492bc241996e1632257d38433195
1 parent 837c1a2 commit a54b41c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/google/crypto/tink/KeysetHandle.java

+3
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,10 @@ public <P> P getPrimitive(Class<P> targetClassObject) throws GeneralSecurityExce
11641164
* wrapped in a {@code KeyHandle}.
11651165
*
11661166
* <p>Please do not use this function in new code. Instead, use {@link #getPrimary}.
1167+
*
1168+
* @deprecated Use {@link #getPrimary} instead.
11671169
*/
1170+
@Deprecated
11681171
public KeyHandle primaryKey() throws GeneralSecurityException {
11691172
int primaryKeyId = keyset.getPrimaryKeyId();
11701173
for (Keyset.Key key : keyset.getKeyList()) {

0 commit comments

Comments
 (0)