Package com.google.crypto.tink.internal
Class ProtoParametersSerialization
- java.lang.Object
-
- com.google.crypto.tink.internal.ProtoParametersSerialization
-
- All Implemented Interfaces:
Serialization
@Immutable public final class ProtoParametersSerialization extends java.lang.Object implements Serialization
Represents aParametersobject serialized with binary protobuf Serialization.ProtoParametersSerializationobjects fully describe aParametersobject, but tailored for protocol buffer serialization.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtoParametersSerializationcheckedCreate(com.google.crypto.tink.proto.KeyTemplate keyTemplate)Creates a newProtoParametersSerializationobject.static ProtoParametersSerializationcreate(com.google.crypto.tink.proto.KeyTemplate keyTemplate)Creates a newProtoParametersSerializationobject.static ProtoParametersSerializationcreate(java.lang.String typeUrl, com.google.crypto.tink.proto.OutputPrefixType outputPrefixType, com.google.protobuf.MessageLite value)Creates a newProtoParametersSerializationobject from the individual parts.com.google.crypto.tink.proto.KeyTemplategetKeyTemplate()The contents of the field value in the message com.google.crypto.tink.proto.KeyData.BytesgetObjectIdentifier()The typeUrl.
-
-
-
Method Detail
-
create
public static ProtoParametersSerialization create(java.lang.String typeUrl, com.google.crypto.tink.proto.OutputPrefixType outputPrefixType, com.google.protobuf.MessageLite value)
Creates a newProtoParametersSerializationobject from the individual parts.Note: the given typeUrl must be valid and must not contain invalid characters.
-
create
public static ProtoParametersSerialization create(com.google.crypto.tink.proto.KeyTemplate keyTemplate)
Creates a newProtoParametersSerializationobject.Note: the given typeUrl must be valid and may not contain invalid characters.
-
checkedCreate
public static ProtoParametersSerialization checkedCreate(com.google.crypto.tink.proto.KeyTemplate keyTemplate) throws java.security.GeneralSecurityException
Creates a newProtoParametersSerializationobject.If the type URL contains invalid characters, such as spaces, this throws a GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
getKeyTemplate
public com.google.crypto.tink.proto.KeyTemplate getKeyTemplate()
The contents of the field value in the message com.google.crypto.tink.proto.KeyData.
-
getObjectIdentifier
public Bytes getObjectIdentifier()
The typeUrl.- Specified by:
getObjectIdentifierin interfaceSerialization
-
-