corda / net.corda.core.serialization / SerializationWhitelist / whitelist

whitelist

abstract val whitelist: List<Class<*>>

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 net.corda.core.contracts.ContractState it needs to be whitelisted. You can do that either by adding the net.corda.core.serialization.CordaSerializable annotation or via this method.