public class CryptoSerdeFactory extends Object implements SerdeFactory
KeyReferenceExtractorCryptoSerializerCryptoDeserializerThreadLocal| Constructor and Description |
|---|
CryptoSerdeFactory(Encryptor encryptor,
Decryptor decryptor,
KeyReferenceExtractor keyReferenceExtractor) |
| Modifier and Type | Method and Description |
|---|---|
<T> org.apache.kafka.common.serialization.Serde<T> |
buildFrom(org.apache.kafka.common.serialization.Serde<T> rawSerde) |
<V> org.apache.kafka.common.serialization.Serde<V> |
buildSelfCryptoAwareSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)
used when the keyref can be deducted directly from the value
|
<K,V> SerdesPair<K,V> |
buildSerdesPair(org.apache.kafka.common.serialization.Serde<K> keySerde,
org.apache.kafka.common.serialization.Serde<V> valueSerde)
Pair the keySerde with the valueSerde
|
public CryptoSerdeFactory(Encryptor encryptor, Decryptor decryptor, KeyReferenceExtractor keyReferenceExtractor)
encryptor - used for value encryptiondecryptor - used for value decryptionkeyReferenceExtractor - used topublic <T> org.apache.kafka.common.serialization.Serde<T> buildFrom(org.apache.kafka.common.serialization.Serde<T> rawSerde)
public <K,V> SerdesPair<K,V> buildSerdesPair(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.Serde<V> valueSerde)
buildSerdesPair in interface SerdeFactorypublic <V> org.apache.kafka.common.serialization.Serde<V> buildSelfCryptoAwareSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)
buildSelfCryptoAwareSerde in interface SerdeFactoryV - valueSerde - Copyright © 2018. All rights reserved.