I have seen some examples to convert java.security.PublicKey
to JWK but I could not find an example to convert java.security.PrivateKey
to JWK (JSON) format in Android. Is that even possible? Is there a way to do this without using any 3rd-party library?
Expecting a function in Java/Kotlin to convert the PrivateKey to JSON (JWK) format.