supportsSecureCoding
SupportsSecureCoding is a class-level indicator used in the Apple Foundation framework to denote that a class supports secure coding for archiving and unarchiving. It is associated with the NSSecureCoding protocol, which aims to prevent object substitution attacks by ensuring that decoded data matches expected classes.
In Objective-C, a class conforming to NSSecureCoding implements a class method named supportsSecureCoding that returns a
In Swift, conforming to NSSecureCoding requires implementing a static property supportsSecureCoding: Bool { get }. A conforming type
Secure coding affects decoding by encouraging or enforcing the use of methods that validate the class type,
Best practices include adopting NSSecureCoding for persisted or transmitted objects, explicitly declaring supportsSecureCoding, and using secure