Serialize key to the
Binder. Due to the multiplatform nature of attesta items, especially keys that are
often part of the
Capsule, it is not possible to use default java serialization mechanics. Instead, we
serialize objects to Binders that can be effectively transmitted over the network and reconstructed on the any
platform.
Note that derived classes usually do not override it, instead, they should properly initialize
#keyInfoand provide
#pack() and
#unpack(byte[]) methods, that are widely used across the system. for that
reason we make this method final as for now. If you think you know the case when it is necessary to override it,
contact developers.
See
#fromBinder(Binder) for deserialization.