public final class KeyData extends com.google.protobuf.GeneratedMessageLite<KeyData,KeyData.Builder> implements KeyDataOrBuilder
The actual *Key-proto is wrapped in a KeyData message, which in addition to this serialized proto contains also type_url identifying the definition of *Key-proto (as in KeyFormat-message), and some extra metadata about the type key material.Protobuf type
google.crypto.tink.KeyData| Modifier and Type | Class and Description |
|---|---|
static class |
KeyData.Builder
The actual *Key-proto is wrapped in a KeyData message, which in addition
to this serialized proto contains also type_url identifying the
definition of *Key-proto (as in KeyFormat-message), and some extra metadata
about the type key material.
|
static class |
KeyData.KeyMaterialType
Protobuf enum
google.crypto.tink.KeyData.KeyMaterialType |
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_MATERIAL_TYPE_FIELD_NUMBER |
static int |
TYPE_URL_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1) |
static KeyData |
getDefaultInstance() |
KeyData.KeyMaterialType |
getKeyMaterialType()
Required.
|
int |
getKeyMaterialTypeValue()
Required.
|
String |
getTypeUrl()
Required.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Required.
|
com.google.protobuf.ByteString |
getValue()
Required.
|
static KeyData.Builder |
newBuilder() |
static KeyData.Builder |
newBuilder(KeyData prototype) |
static KeyData |
parseDelimitedFrom(InputStream input) |
static KeyData |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
parseFrom(byte[] data) |
static KeyData |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
parseFrom(ByteBuffer data) |
static KeyData |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
parseFrom(com.google.protobuf.ByteString data) |
static KeyData |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
parseFrom(com.google.protobuf.CodedInputStream input) |
static KeyData |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
parseFrom(InputStream input) |
static KeyData |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<KeyData> |
parser() |
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TYPE_URL_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int KEY_MATERIAL_TYPE_FIELD_NUMBER
public String getTypeUrl()
Required.
string type_url = 1;getTypeUrl in interface KeyDataOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
Required.
string type_url = 1;getTypeUrlBytes in interface KeyDataOrBuilderpublic com.google.protobuf.ByteString getValue()
Required. Contains specific serialized *Key proto
bytes value = 2 [ctype = STRING_PIECE];getValue in interface KeyDataOrBuilderpublic int getKeyMaterialTypeValue()
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;getKeyMaterialTypeValue in interface KeyDataOrBuilderpublic KeyData.KeyMaterialType getKeyMaterialType()
Required.
.google.crypto.tink.KeyData.KeyMaterialType key_material_type = 3;getKeyMaterialType in interface KeyDataOrBuilderpublic static KeyData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static KeyData parseFrom(InputStream input) throws IOException
IOExceptionpublic static KeyData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeyData parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static KeyData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeyData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static KeyData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static KeyData.Builder newBuilder()
public static KeyData.Builder newBuilder(KeyData prototype)
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<KeyData,KeyData.Builder>public static KeyData getDefaultInstance()
public static com.google.protobuf.Parser<KeyData> parser()