Returns a Verification builder with the algorithm to be used to validate token signature. @param algorithm that will be used to verify the token's signature. @return Verification builder @throws IllegalArgumentException if the provided algorithm is null.
(Algorithm algorithm)
| 60 | * @throws IllegalArgumentException if the provided algorithm is null. |
| 61 | */ |
| 62 | public static Verification require(Algorithm algorithm) { |
| 63 | return JWTVerifier.init(algorithm); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Returns a Json Web Token builder used to create and sign tokens. |