-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JsonWebKeyExtended interface for AKP.
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Extended JsonWebKey interface to support `pub` and `priv` properties, | ||
* which are not supported by the current `JsonWebKey`. | ||
* Both of them are defined for the newly defined JSON WWb Key type AKP (Algorithm Key Pair), | ||
* which is used to express Public and Private Keys for use with Algorithms. | ||
*/ | ||
export interface JsonWebKeyExtended extends JsonWebKey { | ||
/** The public key in base64url encoding, which is used with the 'AKP' key type. */ | ||
pub?: string; | ||
/** The private key in base64url encoding, which is used with the 'AKP' key type. */ | ||
priv?: string; | ||
} |