public static class CompositeKey.Builder
A helper class for building a class CompositeKey.Node
.
class CompositeKey.Node
Constructor and Description |
---|
Builder()
A helper class for building a
class CompositeKey.Node . |
Modifier and Type | Method and Description |
---|---|
CompositeKey.Builder |
addKey(CompositeKey key,
int weight)
Adds a child
class CompositeKey node. Specifying a weight for the child is optional and will default to 1. |
CompositeKey.Builder |
addKeys(net.corda.core.crypto.CompositeKey keys) |
CompositeKey.Builder |
addKeys(java.util.List<? extends net.corda.core.crypto.CompositeKey> keys) |
CompositeKey.Node |
build(java.lang.Integer threshold)
Builds the
class CompositeKey.Node . If threshold is not specified, it will default to
the size of the children, effectively generating an "N of N" requirement. |
public Builder()
A helper class for building a class CompositeKey.Node
.
class CompositeKey.Node
public CompositeKey.Builder addKey(CompositeKey key, int weight)
Adds a child class CompositeKey
node. Specifying a weight for the child is optional and will default to 1.
class CompositeKey
public CompositeKey.Builder addKeys(net.corda.core.crypto.CompositeKey keys)
public CompositeKey.Builder addKeys(java.util.List<? extends net.corda.core.crypto.CompositeKey> keys)
public CompositeKey.Node build(java.lang.Integer threshold)
Builds the class CompositeKey.Node
. If threshold is not specified, it will default to
the size of the children, effectively generating an "N of N" requirement.
class CompositeKey.Node