public class AccountKeyRoleBased extends java.lang.Object implements IAccountKey
Modifier and Type | Class and Description |
---|---|
static class |
AccountKeyRoleBased.AccountKeyRoleBasedDeserializer
Deserialize class to JSON to AccountKeyRoleBased
|
static class |
AccountKeyRoleBased.AccountKeyRoleBasedSerializer
Serializer class to AccountKeyRoleBased into JSON.
|
static class |
AccountKeyRoleBased.RoleGroup |
Modifier and Type | Field and Description |
---|---|
static int |
ROLE_GROUP_COUNT |
Constructor and Description |
---|
AccountKeyRoleBased(java.util.List<IAccountKey> accountKeys)
Creates an AccountKeyRoleBased instance.
|
Modifier and Type | Method and Description |
---|---|
static AccountKeyRoleBased |
decode(byte[] rlpEncodedKey)
Decodes a RLP-encoded AccountKeyRoleBased byte array
|
static AccountKeyRoleBased |
decode(java.lang.String rlpEncodedKey)
Decodes a RLP-encoded AccountKeyRoleBased string
|
static AccountKeyRoleBased |
fromRoleBasedPublicKeysAndOptions(java.util.List<java.lang.String[]> pubArray,
java.util.List<WeightedMultiSigOptions> options)
Creates an AccountKeyRoleBased with given params.
|
java.util.List<IAccountKey> |
getAccountKeys()
Getter function for accountKeys
|
java.lang.String |
getRLPEncoding()
Encodes a AccountKeyRoleBased Object by RLP-encoding method.
|
IAccountKey |
getRoleAccountUpdateKey()
Returns a RoleAccountUpdateKey
|
IAccountKey |
getRoleFeePayerKey()
Returns a RoleFeePayerKey
|
IAccountKey |
getRoleTransactionKey()
Returns a RoleTransactionKey
|
static java.lang.String |
getType()
Returns a AccountKeyRoleBased's type attribute
|
void |
setAccountKeys(java.util.List<IAccountKey> accountKeys)
Setter function for accountKeys
|
public AccountKeyRoleBased(java.util.List<IAccountKey> accountKeys)
accountKeys
- List of a AccountKey implements IAccountKey interfacepublic static AccountKeyRoleBased decode(java.lang.String rlpEncodedKey)
rlpEncodedKey
- RLP-encoded AccountKeyRoleBased string.public static AccountKeyRoleBased decode(byte[] rlpEncodedKey)
rlpEncodedKey
- RLP-encoded AccountKeyRoleBased byte arraypublic static AccountKeyRoleBased fromRoleBasedPublicKeysAndOptions(java.util.List<java.lang.String[]> pubArray, java.util.List<WeightedMultiSigOptions> options)
pubArray
- An List contains public key string array.options
- An List contains WeightedMultiSigOptionspublic java.util.List<IAccountKey> getAccountKeys()
public void setAccountKeys(java.util.List<IAccountKey> accountKeys)
accountKeys
- List of a AccountKey implements IAccountKey interfacepublic java.lang.String getRLPEncoding()
getRLPEncoding
in interface IAccountKey
public static java.lang.String getType()
public IAccountKey getRoleTransactionKey()
public IAccountKey getRoleAccountUpdateKey()
public IAccountKey getRoleFeePayerKey()