类 Account

    • 构造器详细资料

      • Account

        public Account()
    • 方法详细资料

      • isEncrypted

        public boolean isEncrypted()
        账户是否被加密(是否设置过密码) Whether the account is encrypted (Whether the password is set)
      • lock

        public void lock()
        锁定账户 Lock account
      • getHash160

        public byte[] getHash160()
      • isLocked

        public boolean isLocked()
        账户是否被锁定(是否有明文私钥) 有私钥表示解锁 Whether the account is locked (is there a cleartext private key)
        返回:
        true: Locked, false: not Locked
      • validatePassword

        public boolean validatePassword​(String password)
        验证账户密码是否正确 Verify that the account password is correct
      • encrypt

        public void encrypt​(String password)
                     throws NulsException
        根据密码加密账户(给账户设置密码) Password-encrypted account (set password for account)
        抛出:
        NulsException
      • encrypt

        public void encrypt​(String password,
                            boolean isForce)
                     throws NulsException
        根据密码加密账户(给账户设置密码) Password-encrypted account (set password for account)
        抛出:
        NulsException
      • getChainId

        public int getChainId()
      • setChainId

        public void setChainId​(int chainId)
      • getAddress

        public Address getAddress()
      • setAddress

        public void setAddress​(Address address)
      • getAlias

        public String getAlias()
      • setAlias

        public void setAlias​(String alias)
      • getStatus

        public int getStatus()
      • setStatus

        public void setStatus​(int status)
      • getPubKey

        public byte[] getPubKey()
      • setPubKey

        public void setPubKey​(byte[] pubKey)
      • getExtend

        public byte[] getExtend()
      • setExtend

        public void setExtend​(byte[] extend)
      • getCreateTime

        public Long getCreateTime()
      • setCreateTime

        public void setCreateTime​(Long createTime)
      • getEncryptedPriKey

        public byte[] getEncryptedPriKey()
      • setEncryptedPriKey

        public void setEncryptedPriKey​(byte[] encryptedPriKey)
      • getPriKey

        public byte[] getPriKey()
      • setPriKey

        public void setPriKey​(byte[] priKey)
      • getEcKey

        public ECKey getEcKey()
      • setEcKey

        public void setEcKey​(ECKey ecKey)
      • getRemark

        public String getRemark()
      • setRemark

        public void setRemark​(String remark)
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object