Interface Serialization

  • All Known Implementing Classes:
    ProtoKeySerialization, ProtoParametersSerialization

    @Immutable
    public interface Serialization
    Represents either a serialized Key or a serialized Parameters object.

    Serialization objects are used within Tink to serialize keys, keysets, and key formats. For each serialization method (e.g., for binary protobuf serialization), one subclass of this must be defined.

    This class should eventually be in Tinks public API -- however, it might still change before that.

    • Method Detail

      • getObjectIdentifier

        Bytes getObjectIdentifier()
        Identifies which parsing method to use in the registry.

        When registering a parsing function in the registry, one argument will be this object identifier. When the registry is asked to parse a Serialization, the registry will then dispatch it to the corresponding method.