corda / net.corda.core.serialization / SerializationWhitelist

SerializationWhitelist

interface SerializationWhitelist

Provide a subclass of this via the java.util.ServiceLoader mechanism to be able to whitelist types for serialisation that you cannot otherwise annotate. The name of the class must appear in a text file on the classpath under the path META-INF/services/net.corda.core.serialization.SerializationWhitelist

Properties

whitelist

abstract val whitelist: List<Class<*>>

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

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.