corda / net.corda.node.serialization / DefaultWhitelist / customizeSerialization

customizeSerialization

fun customizeSerialization(custom: SerializationCustomization): Boolean

Overrides CordaPluginRegistry.customizeSerialization

Optionally whitelist types for use in object serialization, as we lock down the types that can be serialized.

For example, if you add a new ContractState it needs to be whitelisted. You can do that either by adding the @CordaSerializable annotation or via this method.

Return
true if you register types, otherwise you will be filtered out of the list of plugins considered in future.