Interface SerDe


public interface SerDe
  • Method Details

    • withConfig

      SerDe withConfig(KeyStoreConfig config)
      Configures keystore before deserialization with custom parameters. Without it keystore with default values specified in KeyStoreConfig will be created
      Parameters:
      config -
      Returns:
      configured SerDe
    • serialize

      byte[] serialize(KeyStore keyStore, Supplier<char[]> keyStorePassword)
      Serializes KeyStore into byte[].
      Parameters:
      keyStore - KeyStore to serialize
      keyStorePassword - KeyStore read protection password.
      Returns:
      KeyStore byte[] representation.
    • deserialize

      KeyStore deserialize(byte[] keyStore, Supplier<char[]> keyStorePassword)
      Deserializes KeyStore from byte[].
      Parameters:
      keyStore - KeyStore byte[] to deserialize
      keyStorePassword - KeyStore read protection password.
      Returns:
      KeyStore instance.