Package net.corda.v5.crypto
Class CompositeKeyNodeAndWeight
-
- All Implemented Interfaces:
public final class CompositeKeyNodeAndWeight
A simple data class for passing keys and weights into
CompositeKeyGenerator
.
-
-
Constructor Summary
Constructors Constructor Description CompositeKeyNodeAndWeight(PublicKey node, int weight)
Creates a new CompositeKeyNodeAndWeight
for the specified key and weight for the key.CompositeKeyNodeAndWeight(PublicKey node)
Creates a new CompositeKeyNodeAndWeight
for the specified key, defaulting the key's weight to 1.
-
Method Summary
-
-
Constructor Detail
-
CompositeKeyNodeAndWeight
CompositeKeyNodeAndWeight(PublicKey node, int weight)
Creates a newCompositeKeyNodeAndWeight
for the specified key and weight for the key.- Parameters:
node
- A public key.weight
- The weight for that key, must be greater than zero.
-
CompositeKeyNodeAndWeight
CompositeKeyNodeAndWeight(PublicKey node)
Creates a newCompositeKeyNodeAndWeight
for the specified key, defaulting the key's weight to 1.- Parameters:
node
- A public key.
-
-
-
-