public class LifecycleChaincodeEndorsementPolicy extends Object
Modifier and Type | Method and Description |
---|---|
static LifecycleChaincodeEndorsementPolicy |
fromBytes(byte[] policyAsBytes)
sets the ChaincodeEndorsementPolicy from a byte array
|
static LifecycleChaincodeEndorsementPolicy |
fromPolicyReference(String channelConfigPolicyReference) |
static LifecycleChaincodeEndorsementPolicy |
fromSignaturePolicyYamlFile(Path yamlPolicyFile) |
static LifecycleChaincodeEndorsementPolicy |
fromStream(InputStream inputStream)
Construct a chaincode endorsement policy from a stream.
|
byte[] |
getSerializedPolicyBytes() |
public static LifecycleChaincodeEndorsementPolicy fromSignaturePolicyYamlFile(Path yamlPolicyFile) throws IOException, ChaincodeEndorsementPolicyParseException
public static LifecycleChaincodeEndorsementPolicy fromPolicyReference(String channelConfigPolicyReference) throws IOException, ChaincodeEndorsementPolicyParseException
public static LifecycleChaincodeEndorsementPolicy fromStream(InputStream inputStream) throws IOException
inputStream
- IOException
public static LifecycleChaincodeEndorsementPolicy fromBytes(byte[] policyAsBytes)
policyAsBytes
- the byte array containing the serialized policypublic byte[] getSerializedPolicyBytes()
Copyright © 2022. All rights reserved.