Class AccountKeyRoleBased

  • All Implemented Interfaces:
    IAccountKey

    public class AccountKeyRoleBased
    extends java.lang.Object
    implements IAccountKey
    AccountKeyRoleBased represents a role-based key.
    • Field Detail

      • ROLE_GROUP_COUNT

        public static final int ROLE_GROUP_COUNT
    • 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 interface IAccountKey
        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