Package org.bitcoinj.wallet
Class Protos.EncryptedData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.EncryptedData,Protos.EncryptedData.Builder>
org.bitcoinj.wallet.Protos.EncryptedData.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Protos.EncryptedDataOrBuilder
- Enclosing class:
- Protos.EncryptedData
public static final class Protos.EncryptedData.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.EncryptedData,Protos.EncryptedData.Builder>
implements Protos.EncryptedDataOrBuilder
Protobuf type
wallet.EncryptedData
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionThe encrypted private keyThe initialisation vector for the AES encryption (16 bytes)com.google.protobuf.ByteString
The encrypted private keycom.google.protobuf.ByteString
The initialisation vector for the AES encryption (16 bytes)boolean
The encrypted private keyboolean
The initialisation vector for the AES encryption (16 bytes)setEncryptedPrivateKey
(com.google.protobuf.ByteString value) The encrypted private keysetInitialisationVector
(com.google.protobuf.ByteString value) The initialisation vector for the AES encryption (16 bytes)Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasInitialisationVector
public boolean hasInitialisationVector()The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;
- Specified by:
hasInitialisationVector
in interfaceProtos.EncryptedDataOrBuilder
- Returns:
- Whether the initialisationVector field is set.
-
getInitialisationVector
public com.google.protobuf.ByteString getInitialisationVector()The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;
- Specified by:
getInitialisationVector
in interfaceProtos.EncryptedDataOrBuilder
- Returns:
- The initialisationVector.
-
setInitialisationVector
The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;
- Parameters:
value
- The initialisationVector to set.- Returns:
- This builder for chaining.
-
clearInitialisationVector
The initialisation vector for the AES encryption (16 bytes)
required bytes initialisation_vector = 1;
- Returns:
- This builder for chaining.
-
hasEncryptedPrivateKey
public boolean hasEncryptedPrivateKey()The encrypted private key
required bytes encrypted_private_key = 2;
- Specified by:
hasEncryptedPrivateKey
in interfaceProtos.EncryptedDataOrBuilder
- Returns:
- Whether the encryptedPrivateKey field is set.
-
getEncryptedPrivateKey
public com.google.protobuf.ByteString getEncryptedPrivateKey()The encrypted private key
required bytes encrypted_private_key = 2;
- Specified by:
getEncryptedPrivateKey
in interfaceProtos.EncryptedDataOrBuilder
- Returns:
- The encryptedPrivateKey.
-
setEncryptedPrivateKey
The encrypted private key
required bytes encrypted_private_key = 2;
- Parameters:
value
- The encryptedPrivateKey to set.- Returns:
- This builder for chaining.
-
clearEncryptedPrivateKey
The encrypted private key
required bytes encrypted_private_key = 2;
- Returns:
- This builder for chaining.
-