All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.ledger.AccountDataPermission Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

import utils.Bytes;

public class AccountDataPermission implements DataPermission {

    private AccountModeBits modeBits;
    private Bytes[] owners;
    private String role;

    public AccountDataPermission(AccountType accountType, Bytes[] owners) {
        this(new AccountModeBits(accountType, 777), owners, null);
    }

    public AccountDataPermission(AccountType accountType, Bytes[] owners, String role) {
        this(new AccountModeBits(accountType, 777), owners, role);
    }

    public AccountDataPermission(AccountModeBits modeBits, Bytes[] owners, String role) {
        this.modeBits = modeBits;
        this.owners = owners;
        this.role = role;
    }

    @Override
    public AccountModeBits getModeBits() {
        return modeBits;
    }

    @Override
    public Bytes[] getOwners() {
        return owners;
    }

    @Override
    public String getRole() {
        return role;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy