Package org.web3j.crypto
Class WalletFile
- java.lang.Object
-
- org.web3j.crypto.WalletFile
-
public class WalletFile extends java.lang.Object
Ethereum wallet file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WalletFile.Aes128CtrKdfParams
static class
WalletFile.CipherParams
static class
WalletFile.Crypto
static class
WalletFile.ScryptKdfParams
-
Constructor Summary
Constructors Constructor Description WalletFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAddress()
Get wallet addressWalletFile.Crypto
getCrypto()
Get cryptojava.lang.String
getId()
int
getVersion()
int
hashCode()
void
setAddress(java.lang.String address)
Sets wallet addressvoid
setCrypto(WalletFile.Crypto crypto)
void
setCryptoV1(WalletFile.Crypto crypto)
void
setId(java.lang.String id)
void
setVersion(int version)
-
-
-
Method Detail
-
getAddress
public java.lang.String getAddress()
Get wallet address- Returns:
- Wallet address
-
setAddress
public void setAddress(java.lang.String address)
Sets wallet address- Parameters:
address
- Wallet address
-
getCrypto
public WalletFile.Crypto getCrypto()
Get crypto- Returns:
- Crypto
-
setCrypto
public void setCrypto(WalletFile.Crypto crypto)
- Parameters:
crypto
-
-
setCryptoV1
public void setCryptoV1(WalletFile.Crypto crypto)
- Parameters:
crypto
-
-
getId
public java.lang.String getId()
- Returns:
-
setId
public void setId(java.lang.String id)
- Parameters:
id
-
-
getVersion
public int getVersion()
- Returns:
-
setVersion
public void setVersion(int version)
- Parameters:
version
-
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-