Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created using Verification. try { JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey) .withIssuer("auth0") .build(); DecodedJ
| 19 | * </pre> |
| 20 | */ |
| 21 | public interface JWTVerifier { |
| 22 | |
| 23 | /** |
| 24 | * Performs the verification against the given Token. |
| 25 | * |
| 26 | * @param token to verify. |
| 27 | * @return a verified and decoded JWT. |
| 28 | * @throws JWTVerificationException if any of the verification steps fail |
| 29 | */ |
| 30 | DecodedJWT verify(String token) throws JWTVerificationException; |
| 31 | |
| 32 | /** |
| 33 | * Performs the verification against the given {@link DecodedJWT}. |
| 34 | * |
| 35 | * @param jwt to verify. |
| 36 | * @return a verified and decoded JWT. |
| 37 | * @throws JWTVerificationException if any of the verification steps fail |
| 38 | */ |
| 39 | DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException; |
| 40 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…