public SerializationSchemeContext
This is used to pass information into interface CustomSerializationScheme
about how the object should be (de)serialized.
This context can change depending on the specific circumstances in the node when (de)serialization occurs.
interface CustomSerializationScheme
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getDeserializationClassLoader()
The class loader to use for deserialization. This is guaranteed to be able to load all the required classes passed into
CustomSerializationScheme.deserialize . |
java.util.Map<java.lang.Object,java.lang.Object> |
getProperties()
A map of any additional properties specific to the particular use case. If these properties are set via
TransactionBuilder.toWireTransaction then they might not be available when
deserializing. If the properties are required when deserializing, they can be added into the blob when serializing and read back
when deserializing. |
ClassWhitelist |
getWhitelist()
A whitelist that contains (mostly for security purposes) which classes are authorised to be deserialized.
A secure implementation will not instantiate any object which is not either whitelisted or annotated with
interface CordaSerializable when
deserializing. To catch classes missing from the whitelist as early as possible it is HIGHLY recommended to also check this
whitelist when serializing (as well as deserializing) objects. |
java.lang.ClassLoader getDeserializationClassLoader()
The class loader to use for deserialization. This is guaranteed to be able to load all the required classes passed into
CustomSerializationScheme.deserialize
.
CustomSerializationScheme.deserialize
ClassWhitelist getWhitelist()
A whitelist that contains (mostly for security purposes) which classes are authorised to be deserialized.
A secure implementation will not instantiate any object which is not either whitelisted or annotated with interface CordaSerializable
when
deserializing. To catch classes missing from the whitelist as early as possible it is HIGHLY recommended to also check this
whitelist when serializing (as well as deserializing) objects.
interface CordaSerializable
java.util.Map<java.lang.Object,java.lang.Object> getProperties()
A map of any additional properties specific to the particular use case. If these properties are set via
TransactionBuilder.toWireTransaction
then they might not be available when
deserializing. If the properties are required when deserializing, they can be added into the blob when serializing and read back
when deserializing.
TransactionBuilder.toWireTransaction