-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checking for getKey(ski) returning pub key
FAB-2093 Now that keyImport supports public keys and private keys, there could be a scenario that for a given SKI only the public key exists, so for the calls to getKey(ski) the caller must verify that the result is a private key or public key, and in some scenarios where a private key is required, like when constructing a signing identity, it must throw an Error Change-Id: I7fc7ef66d4200b411eac649ba2e51cd46ca01c0d Signed-off-by: Jim Zhang <[email protected]>
- Loading branch information
1 parent
dfbf9be
commit e64871f
Showing
3 changed files
with
42 additions
and
8 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