public Key getKey() {
      return key;
    }
May return an internal class {@link com.google.crypto.tink.internal.LegacyProtoKey} in case
there is no implementation of the corresponding key class yet.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java