public static class CompositeKey.Builder
A helper class for building a class CompositeKey
.
class CompositeKey
Constructor and Description |
---|
Builder()
A helper class for building a
class CompositeKey . |
Modifier and Type | Method and Description |
---|---|
CompositeKey.Builder |
addKey(java.security.PublicKey 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(java.security.PublicKey keys) |
CompositeKey.Builder |
addKeys(java.util.List<? extends java.security.PublicKey> keys) |
java.security.PublicKey |
build(java.lang.Integer threshold)
Builds the
class CompositeKey . If threshold is not specified, it will default to
the total (aggregated) weight of the children, effectively generating an "N of N" requirement.
During process removes single keys wrapped in class CompositeKey and enforces ordering on child nodes. |
public Builder()
A helper class for building a class CompositeKey
.
class CompositeKey
public CompositeKey.Builder addKey(java.security.PublicKey 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(java.security.PublicKey keys)
public CompositeKey.Builder addKeys(java.util.List<? extends java.security.PublicKey> keys)
public java.security.PublicKey build(java.lang.Integer threshold)
Builds the class CompositeKey
. If threshold is not specified, it will default to
the total (aggregated) weight of the children, effectively generating an "N of N" requirement.
During process removes single keys wrapped in class CompositeKey
and enforces ordering on child nodes.
threshold
- specifies the minimum total weight required (in the simple case – the minimum number of child
signatures required) to satisfy the sub-tree rooted at this node.class CompositeKey
,
class CompositeKey