diff options
author | tholenst <tholenst@google.com> | 2023-07-17 04:24:25 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-07-17 04:25:40 -0700 |
commit | 97d8c49c57ac30274173b943c7d6375ebfa541f8 (patch) | |
tree | d7d0962fc7aa3a1fc526bd298ca289c7f6a59ac0 /java_src | |
parent | aaae5a94f0b96ee90ca82231efc7e0d6b70cb94d (diff) | |
download | tink-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.java | 7 |
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()); } |