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, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<TrezorMessage.CipherKeyValue> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public List<Integer> getAddressNList()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNList
in interface TrezorMessage.CipherKeyValueOrBuilder
public int getAddressNCount()
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressNCount
in interface TrezorMessage.CipherKeyValueOrBuilder
public int getAddressN(int index)
repeated uint32 address_n = 1;
BIP-32 path to derive the key from master node
getAddressN
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean hasKey()
optional string key = 2;
key component of key:value
hasKey
in interface TrezorMessage.CipherKeyValueOrBuilder
public String getKey()
optional string key = 2;
key component of key:value
getKey
in interface TrezorMessage.CipherKeyValueOrBuilder
public com.google.protobuf.ByteString getKeyBytes()
optional string key = 2;
key component of key:value
getKeyBytes
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean hasValue()
optional bytes value = 3;
value component of key:value
hasValue
in interface TrezorMessage.CipherKeyValueOrBuilder
public com.google.protobuf.ByteString getValue()
optional bytes value = 3;
value component of key:value
getValue
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean hasEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
hasEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean getEncrypt()
optional bool encrypt = 4;
are we encrypting (True) or decrypting (False)?
getEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean hasAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
hasAskOnEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean getAskOnEncrypt()
optional bool ask_on_encrypt = 5;
should we ask on encrypt operation?
getAskOnEncrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean hasAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
hasAskOnDecrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean getAskOnDecrypt()
optional bool ask_on_decrypt = 6;
should we ask on decrypt operation?
getAskOnDecrypt
in interface TrezorMessage.CipherKeyValueOrBuilder
public boolean hasIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
hasIv
in interface TrezorMessage.CipherKeyValueOrBuilder
public com.google.protobuf.ByteString getIv()
optional bytes iv = 7;
initialization vector (will be computed if not set)
getIv
in interface TrezorMessage.CipherKeyValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.CipherKeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.CipherKeyValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TrezorMessage.CipherKeyValue parseFrom(InputStream input) throws IOException
IOException
public static TrezorMessage.CipherKeyValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorMessage.CipherKeyValue parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TrezorMessage.CipherKeyValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TrezorMessage.CipherKeyValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TrezorMessage.CipherKeyValue.Builder newBuilder()
public TrezorMessage.CipherKeyValue.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TrezorMessage.CipherKeyValue.Builder newBuilder(TrezorMessage.CipherKeyValue prototype)
public TrezorMessage.CipherKeyValue.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TrezorMessage.CipherKeyValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.