36 - Java Serialization - Protecting sensitive information using SHA1 - Code Demo 3
@backstreetbrogrammer
--------------------------------------------------------------------------------
Chapter 15 - Serialization - Protecting sensitive information using SHA1 - Code Demo 3
--------------------------------------------------------------------------------
When developing a class that provides controlled access to resources, care must be taken to protect sensitive information and functions.
During deserialization, the private state of the object is restored.
To avoid compromising a class, the sensitive state of an object must not be restored from the stream, or it must be re-verified by the class.
The easiest technique is to mark fields that contain sensitive data as private transient.
Transient fields are not persistent and will not be saved by any persistence mechanism.
Marking the field will prevent the state from appearing in the stream and from being restored during deserialization.
Since writing and reading (of private fields) cannot be superseded out
1 view
938
371
24 minutes ago 01:23:00 1
ЖИЗНЬ ПОСЛЕ СМЕРТИ СУЩЕСТВУЕТ? Судмедэксперт об алкоголе, курении и зависимостях. Алексей Решетун
14 hours ago 05:41:47 1
12 июня: День независимости или колонизации? Запись онлайн марафона
1 day ago 00:42:40 1
Проблемы и КАССОВЫЕ РАЗРЫВЫ в посуточном бизнесе. Вся ПРАВДА про ПОСУТОЧНУЮ АРЕНДУ.
2 days ago 00:05:08 1
Все дизель поезда серии ДР и серии Д | ДР & Д
2 days ago 00:00:00 5
“Им хоть Израиль, хоть Иран!“ // Кто делит Ближний Восток? // Стратегия “завали медведя“ | Геворгян
2 days ago 00:20:21 4
«Вы не проходите». Фейсконтрольщик — о секретах своей работы