jjwt lib
verify JWT
key参考格式如下:
1 | MIIBIjANBgkqhkiG5w0BAQEFAAOCAQ8AMIIBCgKCAQEAtqEIbojnolofNc39VMoX |
JWT参考格式如下:
1 | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmMzhlMzYyLWY5MzktNDEyMy1hOWUxLTJjYThlZWI1Yjk5YyIsInRzIjoxNTIzNjAzNzk4LCJpYXQiOjE1MjM2MDI1OTd9.qy_UZVRuWcJTClYy5CMQrI4rya1MoKR-WT5mxxOGWbO334tQI2SBYyabWRpaCI2mPY9RNzfDFzmuqOvyTyryIohvWPwge9a1KesWmAyoO8_zGvVY9pt-wsKLww7bouskYJXkuBR7fd0AGganlZARR1u0csQwW27rWsY22gNQyGn1Kxlvik2Z5gV5lBttQS1Q5j0fEqI1a8W5Y3Rv8y3PlmiAoAwmuqS_j-zUygnMkmuXHXB1qnrnTMlmEymRnEbY_MXgHcYOjUT-S5yZt5wbCcSerFo4tkrxz6Um61c7HcuCEbttIV6qEHzqohkH_ksncMRX232U4lrI0lovDWwMYg |
1 | fun parseJwt(jwt: String, publicKey: String): Claims { |