public static KeyHandle createFromKey(KeyData keyData, OutputPrefixType opt) {
    return new KeyHandle(new ProtoKey(keyData, opt));
  }
Returns a {@link KeyHandle} instance where the underlying {@link TinkKey} wraps the input
{@code keyData}. The returned KeyHandle has a secret if keyData has key material of type
UNKNOWN_KEYMATERIAL, SYMMETRIC, or ASYMMETRIC_PRIVATE.

<p>Do not use this in new code. Instead, use {@link com.google.crypto.tink.Key} and these
facilities.
java_src/src/main/java/com/google/crypto/tink/tinkkey/KeyHandle.java