Interface SerDe
public interface SerDe
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] keyStore, Supplier<char[]> keyStorePassword) DeserializesKeyStorefrom byte[].byte[]SerializesKeyStoreinto byte[].withConfig(KeyStoreConfig config) Configures keystore before deserialization with custom parameters.
-
Method Details
-
withConfig
Configures keystore before deserialization with custom parameters. Without it keystore with default values specified inKeyStoreConfigwill be created- Parameters:
config-- Returns:
- configured
SerDe
-
serialize
SerializesKeyStoreinto byte[].- Parameters:
keyStore- KeyStore to serializekeyStorePassword- KeyStore read protection password.- Returns:
- KeyStore byte[] representation.
-
deserialize
DeserializesKeyStorefrom byte[].- Parameters:
keyStore- KeyStore byte[] to deserializekeyStorePassword- KeyStore read protection password.- Returns:
- KeyStore instance.
-