MCPcopy Index your code
hub / github.com/bcgit/bc-java / apply

Method apply

mls/src/main/java/org/bouncycastle/mls/protocol/Group.java:1608–1626  ·  view source on GitHub ↗
(List<CachedProposal> proposals)

Source from the content-addressed store, hash-verified

1606 }
1607
1608 private JoinersWithPSKS apply(List<CachedProposal> proposals)
1609 throws Exception
1610 {
1611 applyUpdate(proposals);
1612 applyRemove(proposals);
1613 List<LeafIndex> joinerLocs = applyAdd(proposals);
1614 applyGCE(proposals);
1615 List<KeyScheduleEpoch.PSKWithSecret> psks = applyPSK(proposals);
1616
1617 tree.truncate();
1618 treePriv.truncate(tree.getSize());
1619 tree.setHashAll();
1620
1621 if (cachedUpdate != null)
1622 {
1623 cachedUpdate.reset();
1624 }
1625 return new JoinersWithPSKS(joinerLocs, psks);
1626 }
1627
1628 private void applyUpdate(List<CachedProposal> proposals)
1629 throws Exception

Callers 2

handleMethod · 0.95
commitMethod · 0.95

Calls 9

applyUpdateMethod · 0.95
applyRemoveMethod · 0.95
applyAddMethod · 0.95
applyGCEMethod · 0.95
applyPSKMethod · 0.95
setHashAllMethod · 0.80
getSizeMethod · 0.65
resetMethod · 0.65
truncateMethod · 0.45

Tested by

no test coverage detected