@Immutable public final class ProtoParametersSerialization extends Object implements Serialization
Parameters object serialized with binary protobuf Serialization.
ProtoParametersSerialization objects fully describe a Parameters object, but
tailored for protocol buffer serialization.
| Modifier and Type | Method and Description |
|---|---|
static ProtoParametersSerialization |
checkedCreate(KeyTemplate keyTemplate)
Creates a new
ProtoParametersSerialization object. |
static ProtoParametersSerialization |
create(KeyTemplate keyTemplate)
Creates a new
ProtoParametersSerialization object. |
static ProtoParametersSerialization |
create(String typeUrl,
OutputPrefixType outputPrefixType,
com.google.protobuf.MessageLite value)
Creates a new
ProtoParametersSerialization object from the individual parts. |
KeyTemplate |
getKeyTemplate()
The contents of the field value in the message com.google.crypto.tink.proto.KeyData.
|
Bytes |
getObjectIdentifier()
The typeUrl.
|
public static ProtoParametersSerialization create(String typeUrl, OutputPrefixType outputPrefixType, com.google.protobuf.MessageLite value)
ProtoParametersSerialization object from the individual parts.
Note: the given typeUrl must be valid and must not contain invalid characters.
public static ProtoParametersSerialization create(KeyTemplate keyTemplate)
ProtoParametersSerialization object.
Note: the given typeUrl must be valid and may not contain invalid characters.
public static ProtoParametersSerialization checkedCreate(KeyTemplate keyTemplate) throws GeneralSecurityException
ProtoParametersSerialization object.
If the type URL contains invalid characters, such as spaces, this throws a GeneralSecurityException
GeneralSecurityExceptionpublic KeyTemplate getKeyTemplate()
public Bytes getObjectIdentifier()
getObjectIdentifier in interface Serialization