我正在尝试在 Java 中验证 JWT 令牌。如何验证或验证 JWT 令牌的 JWT 签名?
您可以使用 Spring Security 中的 JWT 库,网址为https://github.com/spring-projects/spring-security-oauth https://github.com/spring-projects/spring-security-oauth and http://mvnrepository.com/artifact/org.springframework.security/spring-security-jwt/1.0.1.RELEASE http://mvnrepository.com/artifact/org.springframework.security/spring-security-jwt/1.0.1.RELEASE.
org.springframework.security.jwt.JwtHelper 类有一个静态方法,允许您解析 JWT 令牌并验证其签名。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)