public class FooWalletExtension extends Object implements WalletExtension
Constructor and Description |
---|
FooWalletExtension(String id,
boolean isMandatory) |
Modifier and Type | Method and Description |
---|---|
void |
deserializeWalletExtension(Wallet wallet,
byte[] data)
Loads the contents of this object from the wallet.
|
String |
getWalletExtensionID()
Returns a Java package/class style name used to disambiguate this extension from others.
|
boolean |
isWalletExtensionMandatory()
If this returns true, the mandatory flag is set when the wallet is serialized and attempts to load it without
the extension being in the wallet will throw an exception.
|
byte[] |
serializeWalletExtension()
Returns bytes that will be saved in the wallet.
|
public FooWalletExtension(String id, boolean isMandatory)
public String getWalletExtensionID()
WalletExtension
getWalletExtensionID
in interface WalletExtension
public boolean isWalletExtensionMandatory()
WalletExtension
isWalletExtensionMandatory
in interface WalletExtension
public byte[] serializeWalletExtension()
WalletExtension
serializeWalletExtension
in interface WalletExtension
public void deserializeWalletExtension(Wallet wallet, byte[] data)
WalletExtension
deserializeWalletExtension
in interface WalletExtension
Copyright © 2016. All rights reserved.