Returns existing public key or generates one using the private key
()
| 21 | |
| 22 | /** Returns existing public key or generates one using the private key */ |
| 23 | async getPublicKey(): Promise<string> { |
| 24 | if (!this.publicKey) { |
| 25 | const pubKey = await generatePublicKeyFromPrivate(this.privateKey); |
| 26 | this.publicKey = pubKey; |
| 27 | } |
| 28 | return this.publicKey; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Returns a base64 encoded JSON object containing the Subject and the Private |
no test coverage detected