public static final class TrezorMessage.CipherKeyValue extends com.google.protobuf.GeneratedMessage implements TrezorMessage.CipherKeyValueOrBuilder
CipherKeyValue
Request: Ask device to encrypt or decrypt value of given key @next CipheredKeyValue @next Failure
| Modifier and Type | Class and Description |
|---|---|
static class |
TrezorMessage.CipherKeyValue.Builder
Protobuf type
CipherKeyValue |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS_N_FIELD_NUMBER |
static int |
ASK_ON_DECRYPT_FIELD_NUMBER |
static int |
ASK_ON_ENCRYPT_FIELD_NUMBER |
static int |
ENCRYPT_FIELD_NUMBER |
static int |
IV_FIELD_NUMBER |
static int |
KEY_FIELD_NUMBER |
static com.google.protobuf.Parser<TrezorMessage.CipherKeyValue> |
PARSER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
int |
getAddressN(int index)
repeated uint32 address_n = 1; |
int |
getAddressNCount()
repeated uint32 address_n = 1; |
List<Integer> |
getAddressNList()
repeated uint32 address_n = 1; |
boolean |
getAskOnDecrypt()
optional bool ask_on_decrypt = 6; |
boolean |
getAskOnEncrypt()
optional bool ask_on_encrypt = 5; |
static TrezorMessage.CipherKeyValue |
getDefaultInstance() |
TrezorMessage.CipherKeyValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEncrypt()
optional bool encrypt = 4; |
com.google.protobuf.ByteString |
getIv()
optional bytes iv = 7; |
String |
getKey()
optional string key = 2; |
com.google.protobuf.ByteString |
getKeyBytes()
optional string key = 2; |
com.google.protobuf.Parser<TrezorMessage.CipherKeyValue> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.ByteString |
getValue()
optional bytes value = 3; |
boolean |
hasAskOnDecrypt()
optional bool ask_on_decrypt = 6; |
boolean |
hasAskOnEncrypt()
optional bool ask_on_encrypt = 5; |
boolean |
hasEncrypt()
optional bool encrypt = 4; |
boolean |
hasIv()
optional bytes iv = 7; |
boolean |
hasKey()
optional string key = 2; |
boolean |
hasValue()
optional bytes value = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TrezorMessage.CipherKeyValue.Builder |
newBuilder() |
static TrezorMessage.CipherKeyValue.Builder |
newBuilder(TrezorMessage.CipherKeyValue prototype) |
TrezorMessage.CipherKeyValue.Builder |
newBuilderForType() |
protected TrezorMessage.CipherKeyValue.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static TrezorMessage.CipherKeyValue |
parseDelimitedFrom(InputStream input) |
static TrezorMessage.CipherKeyValue |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.CipherKeyValue |
parseFrom(byte[] data) |
static TrezorMessage.CipherKeyValue |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.CipherKeyValue |
parseFrom(com.google.protobuf.ByteString data) |
static TrezorMessage.CipherKeyValue |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.CipherKeyValue |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TrezorMessage.CipherKeyValue |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrezorMessage.CipherKeyValue |
parseFrom(InputStream input) |
static TrezorMessage.CipherKeyValue |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrezorMessage.CipherKeyValue.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<TrezorMessage.CipherKeyValue> PARSER
public static final int ADDRESS_N_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int ENCRYPT_FIELD_NUMBER
public static final int ASK_ON_ENCRYPT_FIELD_NUMBER
public static final int ASK_ON_DECRYPT_FIELD_NUMBER
public static final int IV_FIELD_NUMBER
public static TrezorMessage.CipherKeyValue getDefaultInstance()
public TrezorMessage.CipherKeyValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<TrezorMessage.CipherKeyValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic List<Integer> getAddressNList()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNList in interface TrezorMessage.CipherKeyValueOrBuilderpublic int getAddressNCount()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNCount in interface TrezorMessage.CipherKeyValueOrBuilderpublic int getAddressN(int index)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressN in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean hasKey()
optional string key = 2;
key component of key:value
hasKey in interface TrezorMessage.CipherKeyValueOrBuilderpublic String getKey()
optional string key = 2;
key component of key:value
getKey in interface TrezorMessage.CipherKeyValueOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
optional string key = 2;
key component of key:value
getKeyBytes in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean hasValue()
optional bytes value = 3;
value component of key:value
hasValue in interface TrezorMessage.CipherKeyValueOrBuilderpublic com.google.protobuf.ByteString getValue()
optional bytes value = 3;
value component of key:value
getValue in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean hasEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
hasEncrypt in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean getEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
getEncrypt in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean hasAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
hasAskOnEncrypt in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean getAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
getAskOnEncrypt in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean hasAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
hasAskOnDecrypt in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean getAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
getAskOnDecrypt in interface TrezorMessage.CipherKeyValueOrBuilderpublic boolean hasIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
hasIv in interface TrezorMessage.CipherKeyValueOrBuilderpublic com.google.protobuf.ByteString getIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
getIv in interface TrezorMessage.CipherKeyValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(InputStream input) throws IOException
IOExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorMessage.CipherKeyValue parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TrezorMessage.CipherKeyValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrezorMessage.CipherKeyValue.Builder newBuilder()
public TrezorMessage.CipherKeyValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TrezorMessage.CipherKeyValue.Builder newBuilder(TrezorMessage.CipherKeyValue prototype)
public TrezorMessage.CipherKeyValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TrezorMessage.CipherKeyValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.