aboutsummaryrefslogtreecommitdiff
path: root/java_src
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2023-07-17 04:24:25 -0700
committerCopybara-Service <copybara-worker@google.com>2023-07-17 04:25:40 -0700
commit97d8c49c57ac30274173b943c7d6375ebfa541f8 (patch)
treed7d0962fc7aa3a1fc526bd298ca289c7f6a59ac0 /java_src
parentaaae5a94f0b96ee90ca82231efc7e0d6b70cb94d (diff)
downloadtink-97d8c49c57ac30274173b943c7d6375ebfa541f8.tar.gz
Deprecate "KeyTemplate.getOutputPrefixType"
PiperOrigin-RevId: 548647821
Diffstat (limited to 'java_src')
-rw-r--r--java_src/src/main/java/com/google/crypto/tink/KeyTemplate.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java_src/src/main/java/com/google/crypto/tink/KeyTemplate.java b/java_src/src/main/java/com/google/crypto/tink/KeyTemplate.java
index 0d0f5ddb5..9663fc008 100644
--- a/java_src/src/main/java/com/google/crypto/tink/KeyTemplate.java
+++ b/java_src/src/main/java/com/google/crypto/tink/KeyTemplate.java
@@ -130,6 +130,13 @@ public final class KeyTemplate {
return kt.getValue().toByteArray();
}
+ /**
+ * @deprecated Instead, operate on the {@link Parameters} object obtained with {@link
+ * #toParameters}. If you really need this value, you need to first use
+ * TinkProtoParametersFormat to serialize this parameters object, then parse the result with
+ * the Tink-internal proto class "KeyTemplate".
+ */
+ @Deprecated
public OutputPrefixType getOutputPrefixType() {
return fromProto(kt.getOutputPrefixType());
}