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

Method applyPSK

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

Source from the content-addressed store, hash-verified

1706 }
1707
1708 private List<KeyScheduleEpoch.PSKWithSecret> applyPSK(List<CachedProposal> proposals)
1709 throws Exception
1710 {
1711 List<PreSharedKeyID> pskIDs = new ArrayList<PreSharedKeyID>();
1712 for (CachedProposal cached : proposals)
1713 {
1714 if (cached.proposal.getProposalType() != ProposalType.PSK)
1715 {
1716 continue;
1717 }
1718
1719 pskIDs.add(cached.proposal.getPreSharedKey().psk);
1720 }
1721 return resolve(pskIDs);
1722 }
1723
1724 private List<LeafIndex> applyAdd(List<CachedProposal> proposals)
1725 {

Callers 1

applyMethod · 0.95

Calls 4

addMethod · 0.95
resolveMethod · 0.95
getProposalTypeMethod · 0.80
getPreSharedKeyMethod · 0.80

Tested by

no test coverage detected