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

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

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

import com.jd.binaryproto.DataContractRegistry;

import utils.Bytes;

public class UserAuthInitData implements UserAuthInitSettings {

	static {
		DataContractRegistry.register(UserAuthInitSettings.class);
	}

	private Bytes userAddress;

	private String[] roles;

	private RolesPolicy policy;

	public void setUserAddress(Bytes userAddress) {
		this.userAddress = userAddress;
	}

	public void setRoles(String[] roles) {
		this.roles = roles;
	}

	public void setPolicy(RolesPolicy policy) {
		this.policy = policy;
	}

	@Override
	public Bytes getUserAddress() {
		return userAddress;
	}

	@Override
	public String[] getRoles() {
		return roles;
	}

	@Override
	public RolesPolicy getPolicy() {
		return policy;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy