public interface StateBasedEndorsement
Modifier and Type | Interface and Description |
---|---|
static class |
StateBasedEndorsement.RoleType
RoleType of an endorsement policy's identity.
|
Modifier and Type | Method and Description |
---|---|
void |
addOrgs(StateBasedEndorsement.RoleType roleType,
java.lang.String... organizations)
Adds the specified orgs to the list of orgs that are required to endorse.
|
void |
delOrgs(java.lang.String... organizations)
deletes the specified channel orgs from the existing key-level endorsement
policy for this KVS key.
|
java.util.List<java.lang.String> |
listOrgs()
Returns an array of channel orgs that are required to endorse changes.
|
byte[] |
policy()
Get the endorsement policy as bytes.
|
byte[] policy()
void addOrgs(StateBasedEndorsement.RoleType roleType, java.lang.String... organizations)
roleType
- the MSP role typeorganizations
- the list of organizationsvoid delOrgs(java.lang.String... organizations)
organizations
- the list of organizationsjava.util.List<java.lang.String> listOrgs()