Package com.klaytn.caver.account
Class AccountKeyRoleBased
- java.lang.Object
-
- com.klaytn.caver.account.AccountKeyRoleBased
-
- All Implemented Interfaces:
IAccountKey
public class AccountKeyRoleBased extends java.lang.Object implements IAccountKey
AccountKeyRoleBased represents a role-based key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccountKeyRoleBased.AccountKeyRoleBasedDeserializer
Deserialize class to JSON to AccountKeyRoleBasedstatic class
AccountKeyRoleBased.AccountKeyRoleBasedSerializer
Serializer class to AccountKeyRoleBased into JSON.static class
AccountKeyRoleBased.RoleGroup
-
Field Summary
Fields Modifier and Type Field Description static int
ROLE_GROUP_COUNT
-
Constructor Summary
Constructors Constructor Description AccountKeyRoleBased(java.util.List<IAccountKey> accountKeys)
Creates an AccountKeyRoleBased instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountKeyRoleBased
decode(byte[] rlpEncodedKey)
Decodes a RLP-encoded AccountKeyRoleBased byte arraystatic AccountKeyRoleBased
decode(java.lang.String rlpEncodedKey)
Decodes a RLP-encoded AccountKeyRoleBased stringstatic 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 accountKeysjava.lang.String
getRLPEncoding()
Encodes a AccountKeyRoleBased Object by RLP-encoding method.IAccountKey
getRoleAccountUpdateKey()
Returns a RoleAccountUpdateKeyIAccountKey
getRoleFeePayerKey()
Returns a RoleFeePayerKeyIAccountKey
getRoleTransactionKey()
Returns a RoleTransactionKeystatic java.lang.String
getType()
Returns a AccountKeyRoleBased's type attributevoid
setAccountKeys(java.util.List<IAccountKey> accountKeys)
Setter function for accountKeys
-
-
-
Constructor Detail
-
AccountKeyRoleBased
public AccountKeyRoleBased(java.util.List<IAccountKey> accountKeys)
Creates an AccountKeyRoleBased instance.- Parameters:
accountKeys
- List of a AccountKey implements IAccountKey interface
-
-
Method Detail
-
decode
public static AccountKeyRoleBased decode(java.lang.String rlpEncodedKey)
Decodes a RLP-encoded AccountKeyRoleBased string- Parameters:
rlpEncodedKey
- RLP-encoded AccountKeyRoleBased string.- Returns:
- AccountKeyRoleBased
-
decode
public static AccountKeyRoleBased decode(byte[] rlpEncodedKey)
Decodes a RLP-encoded AccountKeyRoleBased byte array- Parameters:
rlpEncodedKey
- RLP-encoded AccountKeyRoleBased byte array- Returns:
- AccountKeyRoleBased
-
fromRoleBasedPublicKeysAndOptions
public static AccountKeyRoleBased fromRoleBasedPublicKeysAndOptions(java.util.List<java.lang.String[]> pubArray, java.util.List<WeightedMultiSigOptions> options)
Creates an AccountKeyRoleBased with given params.- Parameters:
pubArray
- An List contains public key string array.options
- An List contains WeightedMultiSigOptions- Returns:
- AccountKeyRoleBased
-
getAccountKeys
public java.util.List<IAccountKey> getAccountKeys()
Getter function for accountKeys- Returns:
- accountKeys
-
setAccountKeys
public void setAccountKeys(java.util.List<IAccountKey> accountKeys)
Setter function for accountKeys- Parameters:
accountKeys
- List of a AccountKey implements IAccountKey interface
-
getRLPEncoding
public java.lang.String getRLPEncoding()
Encodes a AccountKeyRoleBased Object by RLP-encoding method.- Specified by:
getRLPEncoding
in interfaceIAccountKey
- Returns:
- RLP-encoded AccountKeyRoleBased String
-
getType
public static java.lang.String getType()
Returns a AccountKeyRoleBased's type attribute- Returns:
- AccountKeyRoleBased's type attribute
-
getRoleTransactionKey
public IAccountKey getRoleTransactionKey()
Returns a RoleTransactionKey- Returns:
- IAccountKey
-
getRoleAccountUpdateKey
public IAccountKey getRoleAccountUpdateKey()
Returns a RoleAccountUpdateKey- Returns:
- IAccountKey
-
getRoleFeePayerKey
public IAccountKey getRoleFeePayerKey()
Returns a RoleFeePayerKey- Returns:
- IAccountKey
-
-