-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-9515] Add indirect SatisfiesPrincipal MSP caching
The MSP cache, caches the invocation of SatisfiesPrincipal, however - many of the invocations of SatisfiesPrincipal are invoked indirectly via the identities that the MSP returns via DeserializeIdentity(), and these invocations are not cached, because the bccsp msp's identity simply invokes the bccsp MSP's SatisfiesPrincipal() which bypasses the cache. This change set wraps the identities returned by DeserializeIdentity with a struct that overrides the SatisfiesPrincipal method and redirects the SatisfiesPrincipal invocations to the cache instead of the real MSP. Change-Id: I73d38675dd385897bdef7c0d7a927f05cf747501 Signed-off-by: yacovm <yacovm@il.ibm.com>
- Loading branch information
Showing
3 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters