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

Method applyGCE

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

Source from the content-addressed store, hash-verified

1685 }
1686
1687 private void applyGCE(List<CachedProposal> proposals)
1688 throws Exception
1689 {
1690 for (CachedProposal cached : proposals)
1691 {
1692 if (cached.proposal.getProposalType() != ProposalType.GROUP_CONTEXT_EXTENSIONS)
1693 {
1694 continue;
1695 }
1696
1697 //TODO: check nex extension is compatible with all members
1698 //
1699
1700 if (!extensionsSupported(cached.proposal.getGroupContextExtensions().extensions))
1701 {
1702 throw new Exception("Unsupported extensions in GroupContextExtensions");
1703 }
1704 extensions = new ArrayList<Extension>(cached.proposal.getGroupContextExtensions().extensions);
1705 }
1706 }
1707
1708 private List<KeyScheduleEpoch.PSKWithSecret> applyPSK(List<CachedProposal> proposals)
1709 throws Exception

Callers 1

applyMethod · 0.95

Calls 3

extensionsSupportedMethod · 0.95
getProposalTypeMethod · 0.80

Tested by

no test coverage detected