Package com.google.crypto.tink.internal
Interface Serialization
-
- All Known Implementing Classes:
ProtoKeySerialization,ProtoParametersSerialization
@Immutable public interface SerializationRepresents either a serializedKeyor a serializedParametersobject.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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BytesgetObjectIdentifier()Identifies which parsing method to use in the registry.
-
-
-
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.
-
-