public class MetadataEncoderService extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
|
MetadataEncoderService(SchemaRegistry schemaRegistry) |
protected |
MetadataEncoderService(SchemaRegistry schemaRegistry,
io.kcache.Cache<String,KeysetWrapper> encoders) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected <K,V> io.kcache.Cache<K,V> |
createCache(org.apache.kafka.common.serialization.Serde<K> keySerde,
org.apache.kafka.common.serialization.Serde<V> valueSerde,
String topic,
io.kcache.CacheUpdateHandler<K,V> cacheUpdateHandler) |
void |
decodeMetadata(SchemaValue schema) |
void |
encodeMetadata(SchemaValue schema) |
protected static String |
encoderOldSecret(SchemaRegistryConfig config) |
protected static String |
encoderSecret(SchemaRegistryConfig config) |
com.google.crypto.tink.KeysetHandle |
getEncoder(String tenant) |
io.kcache.Cache<String,KeysetWrapper> |
getEncoders() |
protected static com.google.crypto.tink.Aead |
getPrimitive(String secret) |
KafkaSchemaRegistry |
getSchemaRegistry() |
void |
init() |
void |
waitForInit() |
public MetadataEncoderService(SchemaRegistry schemaRegistry)
protected MetadataEncoderService(SchemaRegistry schemaRegistry, io.kcache.Cache<String,KeysetWrapper> encoders)
public KafkaSchemaRegistry getSchemaRegistry()
public io.kcache.Cache<String,KeysetWrapper> getEncoders()
protected static com.google.crypto.tink.Aead getPrimitive(String secret) throws GeneralSecurityException
GeneralSecurityExceptionprotected static String encoderSecret(SchemaRegistryConfig config)
protected static String encoderOldSecret(SchemaRegistryConfig config)
protected <K,V> io.kcache.Cache<K,V> createCache(org.apache.kafka.common.serialization.Serde<K> keySerde,
org.apache.kafka.common.serialization.Serde<V> valueSerde,
String topic,
io.kcache.CacheUpdateHandler<K,V> cacheUpdateHandler)
throws io.kcache.exceptions.CacheInitializationException
io.kcache.exceptions.CacheInitializationExceptionpublic void init()
public void waitForInit()
throws InterruptedException
InterruptedExceptionpublic com.google.crypto.tink.KeysetHandle getEncoder(String tenant)
public void encodeMetadata(SchemaValue schema) throws SchemaRegistryStoreException
SchemaRegistryStoreExceptionpublic void decodeMetadata(SchemaValue schema) throws SchemaRegistryStoreException
SchemaRegistryStoreExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2026 Confluent, Inc.. All rights reserved.